用户:
流川枫11查看:0 回复:1 评论:0 创建时间:2022-05-08T11:37:16
【作品展示】

【作品介绍】
无
【作品源代码】
import turtle as t
t.speed(0)
t.bgcolor('skyblue')
t.pensize(15)
t.color('darkgreen','darkgreen')
t.setheading(-100)
t.forward(350)
#画叶子
t.color('darkgreen','limegreen')
t.pensize(1)
t.penup()
t.goto(-30,-220)
t.pendown()
t.begin_fill()
t.setheading(-30)
t.circle(140,80)
t.left(100)
t.circle(140,80)
t.end_fill()
t.penup()
t.goto(-25, -150)
t.pendown()
t.begin_fill()
t.setheading(120)
t.circle(120, 80)
t.left(100)
t.circle(120, 80)
t.end_fill()
t.penup()
t.home()
t.pendown()
#画花瓣
t.color('grey','#fff361')
for i in range(18):
t.begin_fill()
t.circle(120, 80)
t.left(100)
t.circle(120, 80)
t.left(100)
t.end_fill()
t.left(20)
t.color('#fef260','#fff360')
for i in range(36):
t.begin_fill()
t.circle(50)
t.right(10)
t.end_fill()
t.color('#9f3e3d','#8a6c33')
t.begin_fill()
for i in range(36):
t.circle(50)
t.right(10)
t.end_fill()
t.penup()
t.goto(110,-250)
t.pendown()
t.write('母亲节快乐',False,'left',('宋体',40,'bold'))
t.done()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn