Turtle系列:暖男“(●—●)”表白说,太赞了,满满的都是爱~

33 篇文章 27 订阅
28 篇文章 26 订阅

 

🥗导语

                           ​“遇见你是故事的开始 走到底是余生的欢喜。”                       

                                 关注我啥都有——ALL FOR YOU。                 ——遇见&顾木子吖

愿十六岁的喜欢是六十岁的最爱。散伙是人间常态,我们又不是例外。把你归还给人海,

是清醒,也是知趣。我一生很短,只够喜欢一人,我喜欢你,来自左肩,靠近心脏。

哈喽哈喽~我是木木子,好久不见甚是思念,今天给大家准备的一大波大白表白的案例送给大家,

欢喜嘛?

🥗​正文

木子有话说:

嘿!发现从写了表白的案例开始大家都蛮喜欢的,到现在也陆陆续续的写了很多遍关于各种可以拿

来表白的源码了!

感谢大家的支持与关注,木木子会继续为大家提供好的内容跟文章滴!今天的内容是也算是表白的

哈——沾边边吧~也许应该有可能不大确定是不是表白的,但是我写成了表白的。开森就好.jpg

纯纯纯,纯手工纯Python,打造24K纯——各种版本的大白哦~期待吧

🍛一、Part 1 大白

1)嘿嘿,准备好了没有?你看这大白,他又胖又圆就像这段代码,他漂亮又简单。

完整代码见文末!

你们来这里 编程,觉得 代码 很 好玩,我看行,你们来这学 编程 ,我给你们学习一样开心。

🍚二、Part 2 玫瑰

完整代码见文末!

🍙三、Part 3 大白+玫瑰

1)效果展示

2)附源码

time.sleep(2)
t.hideturtle()
t.color("pink")
t.penup()
t.goto(-300,220)
words1 = '当 '
words2 = ['送','给','小','姐','姐']
for i in range(4):
    t.write(words1, font=("华文行楷", 3*i+14, "bold"))
    t.forward(20+3*i)
    time.sleep(0.15)
t.forward(8)
t.write("!", font=("华文行楷", 30, "bold"))
t.forward(20)
time.sleep(0.5)
for word in words2:
    t.write(word, font=("华文行楷", 30, "bold"))
    t.forward(35)
    time.sleep(0.4)
t.write(":", font=("华文行楷", 30, "bold"))
t.forward(35)
#大白
#头
t.goto(-100,150)
t.right(90)
t.color("black")
t.pensize(1)
t.pendown()
size = 0.6
a = 0.8*size
for i in range(120):
    if 0 <= i < 30 or 60 <= i < 90:
        a = a + 0.2*size
        t.left(3)  # 向左转3度
        t.forward(a)  # 向前走a的步长
    else:
        a = a - 0.2*size
        t.left(3)
        t.forward(a)
t.penup()
#眼睛
time.sleep(0.5)
t.goto(-70,150)
t.dot(14)
time.sleep(0.5)
t.goto(-24,150)
t.dot(14)
time.sleep(0.5)
t.right(60)
t.pendown()
t.speed(2)
t.circle(-50,50)
#身体
t.penup()
t.goto(-89.85,131.47)
t.left(65)
t.pendown()
t.circle(250,60)
t.penup()
t.goto(-2.64,133.09)
t.left(30)
t.pendown()
t.circle(-250,60)
t.right(20)
t.circle(-134,110)
#腿
t.penup()
t.left(135)
t.goto(-120,-145)
t.pendown()
t.circle(120,45)
t.left(15)
t.circle(42,80)
t.left(50)
t.forward(70)
t.penup()
t.back(70)
t.pendown()
t.right(130)
t.circle(42,80)
t.left(15)
t.circle(115,48)
t.penup()
#胳膊
t.goto(-125,89)
t.pendown()
t.left(112)
t.circle(250,50)
t.circle(50,45)
t.circle(20,80)
t.circle(50,45)
t.circle(180,16)
t.penup()
t.goto(31,90)
t.pendown()
t.right(126)
t.circle(-250,50)
t.circle(-50,45)
t.circle(-20,80)
t.circle(-50,45)
t.circle(-180,14)
#手
t.penup()
t.goto(-208,-90)
t.pendown()
t.left(150)
t.right(180)
t.circle(-30,20)
t.penup()
t.goto(-208,-90)
t.right(160)
t.pendown()
t.circle(30,40)
t.circle(5,120)
t.circle(40,40)


#画玫瑰
t.penup()
t.goto(-270,60)
t.pendown()
#玫瑰花角度
t.right(60)
#玫瑰花大小
size=0.35
# 花蕊
t.fillcolor("#EE0000")
t.begin_fill()
t.circle(10*size, 180)
t.circle(25*size, 110)
t.left(50)
t.circle(60*size, 45)
t.circle(20*size, 170)
t.right(24)
t.forward(30*size)
t.left(10)
t.circle(30*size, 110)
t.forward(20*size)
t.left(40)
t.circle(90*size, 70)
t.circle(30*size, 150)
t.right(30)
t.forward(15*size)
t.circle(80*size, 90)
t.left(15)
t.forward(45*size)
t.right(165)
t.forward(20*size)
t.left(155)
t.circle(150*size, 80)
t.left(50)
t.circle(150*size, 90)
t.end_fill()
# 花瓣1
t.left(150)
t.circle(-90*size, 70)
t.left(20)
t.circle(75*size, 105)
t.setheading(80)
t.circle(80*size, 98)
t.circle(-90*size, 40)
# 花瓣2
t.left(180)
t.circle(90*size, 40)
t.circle(-80*size, 98)
t.setheading(-63.5)
# 叶子1
t.forward(30*size)
t.left(90)
t.forward(25*size)
t.left(45)
t.fillcolor("#00CD00")
t.begin_fill()
t.circle(-80*size, 90)
t.right(90)
t.circle(-80*size, 90)
t.end_fill()
t.right(135)
t.forward(60*size)
t.left(180)
t.penup()
t.forward(85*size)
t.pendown()
t.left(90)
t.forward(80*size)
# 叶子2
t.right(90)
t.right(45)
t.fillcolor("#00CD00")
t.begin_fill()
t.circle(80*size, 90)
t.left(90)
t.circle(80*size, 90)
t.end_fill()
t.left(135)
t.forward(60*size)
t.left(180)
t.forward(60*size)
t.right(90)
t.circle(-1000*size,8.6)
t.penup()
t.goto(-200,-110)
t.pendown()
t.circle(-1000*size,10)

#文字可修改
words3 = ['我 ','的 ','♥ ','♥  ','恋 ','恋']
t.penup()
t.color("red")
t.goto(30,220)
t.setheading(0)
for word in words3:
    t.write(word, font=("华文行楷", 26, "bold"))
    t.forward(35)
    time.sleep(0.4)

🍘四Part 4 大白+玫瑰升级版

1)效果展示

2)附部分源码

就是在大白跟玫瑰的基础上升级了一下,更有趣好玩儿,多了一个textinput写的弹窗环节,可以跟

对象一起互动做游戏的啦。后面的文字部分是可以增加的。

比如:猜对啦宝贝,下一个就是猜错了宝贝,是啥啥的纪念日等等提示语言再猜一次......

木木子设置的密码是:2021-10-26。改成大家喜欢的即可。

str=t.textinput("XXXX!","XXXX")
if (str!='2021-10-26'):
    str=t.textinput("XXXX")
    if (str=='20211026'):
        str=t.textinput("XXXX")
        while(str!='2021-10-26'):
            str=t.textinput("XXXX")
    elif (str!='2021-10-26'):
        str=t.textinput("XXXX")
        if (str=='20211026'):
            str=t.textinput("XXXX")
            while(str!='2021-10-26'):
                str=t.textinput("XXXX")
        elif (str!='2021-10-26'):
            str=t.textinput("XXXX")
            if (str=='20211026'):
                str=t.textinput("XXXX")
                while(str!='2021-10-26'):
                    str=t.textinput("XXXX")
            else:
                while(str!='2021-10-26'):
                    str=t.textinput("XXXX")

🥗总结

​好啦!今天给大家的文章总的包含了4款不同的案例源码的啦, 从简单到难,详细的源码等你来拿

~自己敲代码试试吧!主页左侧源码基地见!完整的打包好了免费拿即可。

于🐟茫茫人海相遇——感谢你的阅读!相遇即是缘分,如有帮助到你,记得三连哦~

我是木木子,一个不止能编程的女码农,还能教你玩游戏、制作节日惊喜、甚至撩小姐姐、小哥哥的表白小程序哦......

写在最后——往期也有很多精彩内容,欢迎阅读!关注我,每日更新💖💖

  • 4
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

顾木子吖

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值