使用Python制作表白爱心合集[Python学习教程]

“盘子里最后一块肉给你 一 冰激凌的第一口给你 一手机最后的10%电量给你!”哈喽大家好!我是木木子,我要开始给大家放大招啦。

你来之后,苦都不太苦,甜都特别甜。如果人类有尾巴的话,说起来有点不好意思 ,只要和你在一起,一定会止不住摇起来!我害怕你找不到我,所以我要藏在你心里
。
I love three things in the world.The sun,the moon and you.The sun for the day,the moon for the night,and you for ever.
浮世万千,吾爱有三。日,月与卿。日为朝,月为暮,卿为朝朝暮暮。

正文

一、爱心表白:做我女朋友吧,行就行,不行我再想想办法。

1.效果展示

图片[1]-使用Python制作表白爱心合集[Python学习教程]-AA源码网 | 源码收藏

2.附主程序

t=turtle.pen()
t=turtle
t.up()
t.goto(0,150)
t.down()
t.color('pink')
t.begin_fill()
t.fillcolor('pink')
t.speed(1)
t.left(45)
t.forward(150)
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(250+math.sqrt(2)*100)
t.right (90)
t.speed(2)
t.forward(250+100*math.sqrt(2))
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(100)
t.right(45)
t.forward(150)
t.end_fill()
t.goto(-10,0)
t.pencolor('white')
#L
t.pensize(10)
t.goto(-50,0)
t.goto(-50,80)
t.up ()
#I
t.goto(-100,0)
t.down()
t.goto(-160,0)
t.goto(-130,0)
t.goto(-130,80)
t.goto(-160,80)
t.goto(-100,80)
t.up()
#O
t.goto(10,25)
t.down()
t.right(45)
t.circle(25,extent=180)
t.goto(60,55)
t.circle(25,extent=180)
t.goto(10,25)
t.up()
t.goto(75,80)
t.down()
t.goto(100,0)
t.goto(125,80)
t.up()
t.goto(180,80)
t.down()
t.goto(140,80)
t.goto(140,0)
t.goto(180,0)
t.up()
t.goto(180,40)
t.down()
t.goto(140,40)
#U
t.up()
t.goto(-40,-30)
t.down()
t.goto(-40,-80)
t.circle(40,extent=180)
t.goto(40,-30)
t.hideturtle()
a=input()

以上就是关于对python制作表白爱心合集的详细介绍。欢迎大家对Python制作表白爱心合集内容提出宝贵意见

温馨提示:若内容/图片/下载链接失效,请在下方留言或登录后私信站长

本文结束END


© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容