用户:
B_S查看:0 回复:0 评论:0 创建时间:2021-05-04T09:29:07
【作品展示】

【作品介绍】
【去太空·趣编程】参赛作品
【作品源代码】
import turtle as t
t.speed()
t.pu()
t.goto(200,200)
t.write('请全屏观看')
#PS:以下是函数区
def 绘制箭尾():
t.pu()
t.goto((-100), (-100))
t.pd()
t.fillcolor('yellow')
t.begin_fill()
t.right(90)
t.circle(50, 180)
t.right(270)
t.forward(100)
t.backward(50)
t.end_fill()
t.right(90)
t.forward(100)
t.right(90)
t.forward(50)
t.left(90)
t.begin_fill()
t.circle(50,180)
t.left(90)
t.forward(50)
t.end_fill()
def 绘制箭身():
t.fillcolor('red')
t.begin_fill()
t.forward(250)
t.backward(250)
t.right(90)
t.forward(100)
t.left(90)
t.forward(250)
t.left(90)
t.forward(100)
t.end_fill()
def 绘制箭头():
t.fillcolor('orange')
t.begin_fill()
t.right(135)
t.forward(75)
t.backward(75)
t.right(45)
t.forward(100)
t.left(135)
t.forward(72)
t.end_fill()
绘制箭尾()
绘制箭身()
绘制箭头()
t.done()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn