用python画一个爱心

python 复制代码
import turtle
turtle.setup(600, 400)
turtle.pensize(2)
turtle.penup()
turtle.goto(0, 90)
turtle.setheading(0)
turtle.left(135)
turtle.begin_fill();
turtle.color("pink", "pink")
turtle.pendown()
turtle.circle(63.65, 180)
turtle.goto(0, -90)
turtle.goto(90, 0)
turtle.setheading(45)
turtle.circle(63.65, 180)
turtle.end_fill()
turtle.hideturtle()
turtle.exitonclick()
相关推荐
高洁0132 分钟前
AI赋能产业升级与中美未来经济赛道博弈
人工智能·python·深度学习·机器学习·transformer
夜晚回家43 分钟前
Python 原始字符串详解 | r 前缀到底让什么不再转义
开发语言·python
用户019027581611 小时前
如何用 Python 计算 EMV 简易波动指标?
python
第25小时记录1 小时前
[2026] Linux安装教程
运维·python
前端 贾公子3 小时前
LangGraph == 图的状态(State)管理 (中)
开发语言·数据库·python
the局外人3 小时前
FastAPI中jwt的基本使用与实践
后端·python·fastapi
mklpo1473 小时前
为不支持sse4.2命令集的老旧设备制作Win11 26H2系统镜像,2026-10-11。
运维·windows·python
GoldenSpider.AI4 小时前
用 AI 改流程之前先做「四桶」体检:9 次返工里 8 次靠规则就能消掉(附 Python 发布前校验器)
人工智能·python·自动化·ai智能体
小白快快跑哦4 小时前
python-字符串全解(六):正则表达式-修饰符
python·正则表达式·修饰符