python写出表白_简单python 表白代码
大家好,又见面了,我是你们的朋友全栈君。
# 导入模块
import turtle
# 人
turtle.penup()
turtle.goto(-100, 100)
turtle.pendown()
turtle.color(‘yellow’)
turtle.setheading(55)
turtle.circle(50, 280)
turtle.setheading(238)
turtle.forward(145)
turtle.setheading(-45)
turtle.circle(165, 85)
turtle.setheading(120)
turtle.forward(175)
turtle.penup()
turtle.goto(-120, 120)
turtle.pendown()
turtle.forward(25)
turtle.penup()
turtle.goto(-100, 140)
turtle.pendown()
turtle.forward(10)
turtle.penup()
turtle.goto(-110, 105)
turtle.pendown()
turtle.setheading(15)
turtle.circle(10, 60)
turtle.penup()
turtle.goto(-145, -105)
turtle.pendown()
turtle.setheading(-90)
turtle.forward(50)
turtle.penup()
turtle.goto(-100, -105)
turtle.pendown()
turtle.setheading(-90)
turtle.forward(50)
turtle.penup()
turtle.goto(-80, 65)
turtle.pendown()
turtle.setheading(30)
turtle.forward(65)
turtle.circle(10, 70)
turtle.forward(5)
turtle.circle(8, 60)
turtle.setheading(60)
turtle.circle(-5, 90)
turtle.setheading(-80)
turtle.forward(10)
turtle.setheading(30)
turtle.forward(18)
turtle.circle(-2, 180)
turtle.setheading(-150)
turtle.forward(19)
for i in range(1, 4, 1):
turtle.setheading(30)
turtle.forward(4)
turtle.circle(-2.2, 180)
turtle.forward(4.2)
turtle.setheading(170)
turtle.circle(-10, 36)
turtle.setheading(210)
turtle.forward(75)
# 心
turtle.penup()
turtle.goto(70, 90)
turtle.pendown()
turtle.color(‘red’)
turtle.begin_fill()
turtle.fillcolor()
turtle.setheading(135)
turtle.forward(80)
turtle.circle(-40, 180)
turtle.setheading(45)
turtle.circle(-40, 180)
turtle.forward(80)
turtle.end_fill()
# 心中填字
turtle.penup()
turtle.goto(48, 155)
turtle.pendown()
turtle.color(‘yellow’)
turtle.write(‘I Love You’)
# 移动右下方填字
turtle.penup()
turtle.goto(200, -300)
turtle.pendown()
turtle.color(‘blue’)
turtle.write(‘喜欢是棋逢对手,但爱是甘拜下风!’)
turtle.hideturtle()
turtle.done()
标签:turtle,表白,python,代码,penup,setheading,pendown,forward,circle
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/143943.html原文链接:https://javaforall.cn
相关文章
- python表白代码-python告白代码,只属于程序员的浪漫
- Python 分形算法__代码里开出来的数学之花
- Python常用代码_python画图代码大全
- WTF!只需一行Python代码即可玩20几款小游戏
- python源码之家_python画图代码大全
- python基本代码大全_python怎么运行代码
- 10行python代码做出哪些酷炫的事情?
- 21张让你Python代码能力突飞猛进的速查表
- Google 内部的 Python 代码风格指南
- Python 使用 Tornado Web 框架写HTTP接口实例代码(异步+线程池)
- Python绘制时间演变图工具汇总(附代码)
- vscode查看源代码_vscode新建python项目
- Python表白代码:太秀了,用过的人都找到了对象…【满屏玫瑰盛开】
- python自动补全设置_python代码补全
- Jupyter Notebook又一利器Visual Python,拯救不想写代码!
- Linux 上使用 crontab 设置定时任务及运行 Python 代码不执行的解决方案
- 送你情人节(劫)专属Python全套代码
- 520专属Python代码来了
- python注释多行代码快捷键_python粘贴快捷键
- python中itchat_python打招呼的代码