用户:
南通编程猫太阳老师查看:0 回复:1 评论:0 创建时间:2019-08-14T15:03:51
【作品展示】

【作品介绍】
测试
【作品源代码】
import turtle
import random
__Pen = turtle.Pen()
#开始进入Python的世界
turtle.bgcolor("#000000")
__Pen.pencolor("#ffff33")
__Pen.fillcolor("#ffff33")
__Pen.speed(100)
for __count in range(50):
i = random.randint(8, 35)
__Pen.pendown()
__Pen.begin_fill()
for __count in range(5):
__Pen.forward(i)
__Pen.right(144)
__Pen.end_fill()
__Pen.penup()
__Pen.goto(random.randint((-300), 300), random.randint((-300), 220))
__Pen.begin_fill()
__Pen.goto(250, 200)
__Pen.pendown()
__Pen.circle(30)
__Pen.end_fill()
__Pen.penup()
turtle.done()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn