用户:
pokOS查看:0 回复:0 评论:0 创建时间:2021-05-04T18:24:19
【作品展示】

【作品介绍】
无
【作品源代码】
import random
import turtle
print('去太空·趣编程'+'\n'+'deepin-baat-maker.zip.py')
print('著作权:土拨鼠工作室pok OS分部门【https://pokos.mysxl.cn】' +
'\n'+'使用权:编程猫(深圳点猫科技有限公司)【https://www.codemao.cn】')
input('输入“TaiKong.py>begin_code>start”开始运行: ')
print('任务栏(香港版本Windows工作列、Mac OS dock栏、Unix/Linux桌面)会多出一个叫“Python Turtle Graphics”的窗体,点击它查看结果。')
__Pen = turtle.Pen()
turtle.bgcolor("#000066")
__Pen.hideturtle()
__Pen.speed(0)
for __count in range(500):
__Pen.penup()
__Pen.goto(random.uniform((-700), 700), random.uniform((-550), 900))
__Pen.pendown()
__Pen.pencolor("#ffff66")
__Pen.fillcolor("#ffff99")
__Pen.begin_fill()
__Pen.right(random.randint(20, 180))
for __count in range(4):
__Pen.forward(5)
__Pen.right(90)
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-250), 200)
__Pen.pendown()
__Pen.pencolor("#ffcc00")
__Pen.dot(100)
__Pen.penup()
__Pen.goto(0, (-550))
__Pen.pendown()
__Pen.pencolor("#3333ff")
__Pen.dot(900)
__Pen.pensize(50)
__Pen.penup()
__Pen.goto((-250), (-270))
__Pen.pendown()
__Pen.setheading(90)
__Pen.pencolor("#336666")
__Pen.pensize(20)
__Pen.speed(20)
__Pen.forward(500)
__Pen.right(90)
__Pen.pensize(5)
__Pen.begin_fill()
__Pen.fillcolor('red')
__Pen.pencolor('red')
for i in range(2):
__Pen.forward(280)
__Pen.right(90)
__Pen.forward(200)
__Pen.right(90)
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-170), 145)
__Pen.pendown()
__Pen.begin_fill()
__Pen.fillcolor('yellow')
__Pen.pencolor('yellow')
for x in range(5):
__Pen.forward(50)
__Pen.right(144)
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-100), 180)
__Pen.pendown()
__Pen.begin_fill()
__Pen.fillcolor('yellow')
__Pen.pencolor('yellow')
for x in range(5):
__Pen.forward(20)
__Pen.right(144)
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-70), 160)
__Pen.pendown()
__Pen.begin_fill()
__Pen.fillcolor('yellow')
__Pen.pencolor('yellow')
for x in range(5):
__Pen.forward(20)
__Pen.right(144)
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-70), 120)
__Pen.pendown()
__Pen.begin_fill()
__Pen.fillcolor('yellow')
__Pen.pencolor('yellow')
for x in range(5):
__Pen.forward(20)
__Pen.right(144)
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-100), 100)
__Pen.pendown()
__Pen.begin_fill()
__Pen.fillcolor('yellow')
__Pen.pencolor('yellow')
for x in range(5):
__Pen.forward(20)
__Pen.right(144)
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-250), (-270))
__Pen.pencolor("#336666")
__Pen.pendown()
__Pen.showturtle()
__Pen.setheading(90)
__Pen.pensize(20)
__Pen.forward(500)
__Pen.pencolor("#999900")
__Pen.fillcolor("#999900")
__Pen.begin_fill()
__Pen.circle(5)
__Pen.end_fill()
turtle.done()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn