妇女节的创造和存在意义,就是为了见证妇女创造历史,为得到平等、公正、和平以及发展所做出的斗争。充分发扬了“自尊、自爱、自立、自强”的巾帼精神,充分展示了无愧于时代的女性魅力。
是女儿,是妻子,是母亲,更是你自己!!!
“三七是中药,三九是西药。三月八日是你讨好小仙女的良药,你的礼物准备好
了吗?”
张国荣说谈恋爱一定要从收到一束花和正式的告白开始。
代码分享:
#1)导入库
import turtle
# 设置初始位置
turtle.penup()
turtle.left(90)
turtle.fd(200)
turtle.pendown()
turtle.right(90)
# 2)花蕊
turtle.fillcolor("red")
turtle.begin_fill()
turtle.circle(10, 180)
turtle.circle(25, 110)
turtle.left(50)
turtle.circle(60, 45)
turtle.circle(20, 170)
turtle.right(24)
turtle.fd(30)
turtle.left(10)
turtle.circle(30, 110)
turtle.fd(20)
turtle.left(40)
turtle.circle(90, 70)
turtle.circle(30, 150)
turtle.right(30)
turtle.fd(15)
turtle.circle(80, 90)
turtle.left(15)
turtle.fd(45)
turtle.right(165)
turtle.fd(20)
turtle.left(155)
turtle.circle(150, 80)
turtle.left(50)
turtle.circle(150, 90)
turtle.end_fill()
#3)花瓣1
turtle.left(150)
turtle.circle(-90, 70)
turtle.left(20)
turtle.circle(75, 105)
turtle.setheading(60)
turtle.circle(80, 98)
turtle.circle(-90, 40)
#4)花瓣2
turtle.left(180)
turtle.circle(90, 40)
turtle.circle(-80, 98)
turtle.setheading(-83)
#5)叶子1
turtle.fd(30)
turtle.left(90)
turtle.fd(25)
turtle.left(45)
turtle.fillcolor("green")
turtle.begin_fill()
turtle.circle(-80, 90)
turtle.right(90)
turtle.circle(-80, 90)
turtle.end_fill()
turtle.right(135)
turtle.fd(60)
turtle.left(180)
turtle.fd(85)
turtle.left(90)
turtle.fd(80)
#5)叶子2
turtle.right(90)
turtle.right(45)
turtle.fillcolor("green")
turtle.begin_fill()
turtle.circle(80, 90)
turtle.left(90)
turtle.circle(80, 90)
turtle.end_fill()
turtle.left(135)
turtle.fd(60)
turtle.left(180)
turtle.fd(60)
turtle.right(90)
turtle.circle(200, 60)
turtle.pendown()
turtle.done()
图片展示:
(这个二维码哦,小编认为能很直接表达出你想要说的话哦!)
剪断的脐带,甩开得手,用力关上的门。我用一生跟你告别,你却在用一生跟我说路上小心。
妈妈以前也是个不问世事的女孩,妈妈曾经也有自己的诗和远方,后来多了好多的角色,妈
妈,妻子,儿媳.....在你出生的那一刻我就变成了超人,白天黑夜交替带娃,无所不能。可最怀念
的却是女儿这个角色。
给女朋友送上祝福的时候别忘记了给妈妈也送上一场漂亮的烟花秀哦!
部分代码:
class Firework:
def __init__(self):
# 随机颜色
self.colour = (randint(0, 255), randint(0, 255), randint(0, 255))
self.colours = (
(randint(0, 255), randint(0, 255), randint(0, 255)),
(randint(0, 255), randint(0, 255), randint(0, 255)),
(randint(0, 255), randint(0, 255), randint(0, 255)))
self.firework = Particle(randint(0, DISPLAY_WIDTH), DISPLAY_HEIGHT, True,
self.colour) # Creates the firework particle
self.exploded = False
self.particles = []
self.min_max_particles = vector(100, 225)
def update(self, win): # 每帧调用
if not self.exploded:
self.firework.apply_force(gravity)
self.firework.move()
for tf in self.firework.trails:
tf.show(win)
self.show(win)
if self.firework.vel.y >= 0:
self.exploded = True
self.explode()
else:
for particle in self.particles:
particle.apply_force(vector(gravity.x + uniform(-1, 1) / 20, gravity.y / 2 + (randint(1, 8) / 100)))
particle.move()
for t in particle.trails:
t.show(win)
particle.show(win)
def explode(self):
# amount 数量
amount = randint(self.min_max_particles.x, self.min_max_particles.y)
for i in range(amount):
self.particles.append(Particle(self.firework.pos.x, self.firework.pos.y, False, self.colours))
def show(self, win):
pygame.draw.circle(win, self.colour, (int(self.firework.pos.x), int(self.firework.pos.y)), self.firework.size)
def remove(self):
if self.exploded:
for p in self.particles:
if p.remove is True:
self.particles.remove(p)
if len(self.particles) == 0:
return True
else:
return False
图片展示:
当然小仙女自己也要对自己好一点咯~✨
纸飞机的寓意是很美好的,让纸飞机带上自己的梦想出发!飞得更高更远更好!让它替自己去完成
没有完成的梦想,也有对未来美好生活的盼望。✨
正式敲代码
import turtle
#太阳
turtle.color('red')
turtle.penup()
turtle.goto(250,200)
turtle.pendown()
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()
turtle.color('black','blue')
turtle.begin_fill()
#飞机
turtle.penup()
turtle.home()
turtle.pendown()
turtle.pensize(5)
turtle.goto(-300,150)
turtle.goto(100,50)
turtle.goto(0,0)
turtle.end_fill()
turtle.goto(-30,-125)
turtle.goto(-50,-50)
turtle.begin_fill()
turtle.goto(-300,150)
turtle.goto(-125,-125)
turtle.goto(-50,-50)
turtle.goto(-30,-125)
turtle.goto(-85,-85)
turtle.end_fill()
#线条
turtle.pensize(3)
turtle.penup()
turtle.goto(75,25)
turtle.pendown()
turtle.goto(200,0)
turtle.penup()
turtle.goto(50,-5)
turtle.pendown()
turtle.goto(250,-30)
turtle.penup()
turtle.goto(10,-80)
turtle.pendown()
turtle.goto(100,-150)
turtle.penup()
turtle.goto(-80,-125)
turtle.pendown()
turtle.goto(120,-200)
turtle.ht()
图片展示:
人总要有个追求,有个盼望,心里种着一棵向日葵 ,生活便会一路向阳。生活,是一首隽永的
诗,每个人都有自己的情怀,我们只需随着心的感觉,保持自己喜欢的样子呀~
以上就是文章的全部内容了,小编在这里祝福各位公主女神节快乐~
大家喜欢的记得点点赞,需要完整的项目源码的可以点击这行字体哦!