3

【Python表白小程序】“路过庄园,却只思念一朵玫瑰,我见过星河,但只爱一颗行星“

 2 years ago
source link: https://blog.csdn.net/slw213106/article/details/122341310
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

【Python表白小程序】“路过庄园,却只思念一朵玫瑰,我见过星河,但只爱一颗行星“

“我路过庄园,却只思念一朵玫瑰,我见过星河,但只爱一颗行星。”

——《玫瑰的爱情》

不同的人有不同的表白方式。

有一东北爷们,感觉来了说上就上现在马上,谁拉着也不好使;

也有套路,“—你会喜欢我吗?”“—不会呀”“—那我教你好了”;还有冷笑话,“觉得你长得好像我下

一任女朋友”……在各社交平台,表白的套路也是千奇百怪!

那栗子除了看文案嗑糖,今天教广大单身青年or给有对象的人支一招!分分钟,感动.jpg

庞大的代码量可是我敲了几天的代码呐!方便你我它:代码都打包好了哈,没python的小朋友也可

以get到这份小程序!

99朵玫瑰+你是我的唯一心形图片 (表白必备哦亲们).py  找我拿exe文件哦!

效果展示:

1>随机截图抓拍

2>随机截图抓拍

3>随机截图抓拍

4>后续关闭程序弹窗

想了想:感觉一份小程序太单调了,于是........

玫瑰文案:

:star: 把玫瑰藏于盛夏,把海棠藏于深秋。

:star:落幕下的花店,玫瑰将荒野的故事告诉风烟。

:star:晚霞与玫瑰共度浪漫,你是我心中的爱意泛滥。

:star:神明溺水,玫瑰凋零, 堂里拉着手风琴,浪漫致命。

:star:少女的梦里有大海,有日落, 有蝉鸣不止的盛夏,和永不凋零的玫瑰。

:star:风很温柔,花很浪漫,你很特别,我很喜欢,我们从远方赶来,共赴一场玫瑰色。

另一组玫瑰小程序

代码演示:

import turtle as t


t.setup(800,800)
t.hideturtle()
t.speed(11)
t.penup()
t.goto(50,-450)
t.pensize(5)
t.pencolor("white")
t.seth(140)
t.pendown()
t.speed(10)
t.circle(-300,60)
t.fd(100)

#叶子
t.seth(10)
t.fd(50)
t.fillcolor("green")
t.begin_fill()
t.right(40)
t.circle(120,80)
t.left(100)
t.circle(120,80)
t.end_fill()
t.seth(10)
t.fd(90)
t.speed(11)
t.penup()
t.fd(-140)
t.seth(80)
#一片叶子
t.pendown()
t.speed(10)
t.fd(70)
t.seth(160)
t.fd(50)
t.fillcolor("black")
t.begin_fill()
t.right(40)
t.circle(120,80)
t.left(100)
t.circle(120,80)
t.end_fill()
t.seth(160)
t.fd(90)
t.speed(11)
t.penup()
t.fd(-140)
t.seth(80)
t.pendown()
t.speed(10)
#
t.fd(100)
#花瓣
t.seth(-20)
t.fillcolor("black")
t.begin_fill()
t.circle(100,100)
t.circle(-110,70)
t.seth(179)
t.circle(223,76)
t.end_fill()
#2花瓣
t.speed(11)
t.fillcolor("pink")
t.begin_fill()

t.left(180)
t.circle(-223,60)
t.seth(70)
t.speed(10)
t.circle(-213,15)#55
t.left(70)#125
t.circle(200,70)
t.seth(-80)
t.circle(-170,40)
t.circle(124,94)
t.end_fill()
#
t.speed(11)
t.penup()
t.right(180)
t.circle(-124,94)
t.circle(170,40)
t.pendown()
t.speed(10)

t.seth(-60)
t.circle(175,70)

t.seth(235)
t.circle(300,12)
t.right(180)
t.circle(-300,12)

t.seth(125)
t.circle(150,60)

t.seth(70)
t.fd(-20)
t.fd(20)

t.seth(-45)
t.circle(150,40)
t.seth(66)
t.fd(-18.5)
t.fd(18.5)

t.seth(140)
t.circle(150,27)
t.seth(60)
t.fd(-8)

t.speed(11)
t.penup()
t.left(20.8)
t.fd(-250.5)

#3花瓣

t.pendown()
t.speed(10)
t.fillcolor("black")
t.begin_fill()
t.seth(160)

t.circle(-140,85)
t.circle(100,70)
t.right(165)
t.circle(-200,32)
t.speed(11)
t.seth(-105)
t.circle(-170,14.5)
t.circle(123,94)
t.end_fill()
t.done()

效果展示:

黑玫瑰:“你是恶魔,且为我所有!”

粉玫瑰:“初次见面,你好!”

颜色可以自己修改滴!

视频效果展示汇总:

遇见你爱意汹涌,看世间万物都浪漫心动!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK