用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()
相关推荐
jerryinwuhan16 分钟前
Python快速入门(纯净版)
python
liferecords17 分钟前
第 12 讲 · Python 侧接入:火焰图定位热点与间接使用硬件加速
python·性能分析·鲲鹏·火焰图·ctypes
hhzz17 分钟前
【OpenCV 入门到精通 11】机器学习应用:KNN、SVM 与 K-Means 实战
人工智能·python·深度学习·opencv
K 旺仔小馒头31 分钟前
【项目】商城系统用户端测试报告
自动化测试·python·功能测试
东莞市云毅网络有限公司43 分钟前
用 SQLite FTS5 给企业文档建本地全文索引:中文分词与权重调优
python·数据清洗·rag·企业知识库·文档解析
钱栈up44 分钟前
health从200变000:一次差点引发双端口冲突的后端巡检复盘
python
正经教主1 小时前
【FDE系列】阶段2:Day 22:变量、数据类型、条件判断 — Python 的“记忆“和“判断“
人工智能·python·fde
打工仔折腾 AI1 小时前
Pascal Editor 本地部署实战:Bun 启动 WebGPU 3D 编辑器并解决公网访问报错
人工智能·后端·python·性能优化
m0_547486661 小时前
《Python从入门到数据分析应用》全套PPT课件2026
python·数据分析
All for pursuit.1 小时前
FastAPI+Ollama 部署本地AI大模型对话助手
python·github·aigc·ollama