用户:
小马爱吃土豆查看:1 回复:1 评论:1 创建时间:2021-05-01T10:12:48
【作品展示】

【作品介绍】
全屏下观看效果更好哦~
【作品源代码】
import turtle
turtle.bgcolor("#000099")
t = turtle.Pen()
t.speed(0.7)
def start():
t.penup()
t.goto(300, 400)
t.pendown()
t.begin_fill()
t.fillcolor('gold')
t.circle(50)
t.end_fill()
t.penup()
def start1():
t.penup()
t.goto((-149), 200)
t.pendown()
t.begin_fill()
t.fillcolor('pink')
t.circle(50)
t.end_fill()
t.penup()
def start2():
t.penup()
t.goto(250, (-400))
t.pendown()
t.begin_fill()
t.fillcolor('white')
t.circle(50)
t.end_fill()
t.penup()
def head():
t.penup()
t.goto(0, (-100))
t.pendown()
t.begin_fill()
t.fillcolor('white')
t.circle(100)
t.end_fill()
t.penup()
def head1():
t.penup()
t.goto((-1), (-101))
t.pendown()
t.begin_fill()
t.fillcolor('blue')
t.circle(80)
t.end_fill()
t.penup()
def body():
t.penup()
t.goto((-50), (-101))
t.pendown()
t.begin_fill()
for __count in range(4):
t.forward(100)
t.right(90)
t.fillcolor('white')
t.end_fill()
t.penup()
def arm1():
t.penup()
t.goto((-80), (-101))
t.pendown()
t.begin_fill()
t.fillcolor('white')
t.forward(30)
t.right(90)
t.forward(60)
t.right(90)
t.forward(30)
t.right(90)
t.forward(60)
t.right(90)
t.end_fill()
t.penup()
def arm2():
t.penup()
t.goto(50, (-100))
t.pendown()
t.begin_fill()
t.fillcolor('white')
t.forward(30)
t.right(90)
t.forward(60)
t.right(90)
t.forward(30)
t.right(90)
t.forward(60)
t.right(90)
t.end_fill()
t.penup()
def foot1():
t.penup()
t.goto((-50), (-200))
t.pendown()
t.begin_fill()
t.fillcolor('white')
t.forward(30)
t.right(90)
t.forward(60)
t.right(90)
t.forward(30)
t.right(90)
t.forward(60)
t.right(90)
t.end_fill()
t.penup()
def foot2():
t.penup()
t.goto(23, (-200))
t.pendown()
t.begin_fill()
t.fillcolor('white')
t.forward(30)
t.right(90)
t.forward(60)
t.right(90)
t.forward(30)
t.right(90)
t.forward(60)
t.right(90)
t.end_fill()
t.penup()
def 光泽():
t.penup()
t.goto(40, 10)
t.pendown()
t.begin_fill()
t.fillcolor('white')
t.circle(6)
t.end_fill()
t.penup()
def 衣服装饰():
t.penup()
t.goto((-35), (-105))
t.pendown()
t.begin_fill()
for __count in range(4):
t.forward(50)
t.right(90)
t.fillcolor('blue')
t.end_fill()
t.penup()
head()
head1()
body()
arm1()
arm2()
foot1()
foot2()
光泽()
衣服装饰()
start()
start1()
start2()
t.write('初学海龟,制作不易')
t.write('点个赞呗')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端: