猫史档案馆


【Python作品分享】【去太空·趣编程】星空【作品秀】

用户:花生编程花生编程查看:0 回复:0 评论:0 创建时间:2021-05-01T22:00:17


【作品展示】

center_image

 

【作品介绍】

参加活动作品

我是个萌新

只能做成这样了。

 

【作品源代码】

import turtle
import random

__Pen = turtle.Pen()


#开始进入Python的世界
__Pen.pencolor("#ffffff")
turtle.bgcolor("#000000")
__Pen.fillcolor("#ffff33")
__Pen.penup()
__Pen.goto((-250), 200)
__Pen.begin_fill()
__Pen.pendown()
for __count in range(90):
    __Pen.backward(1)
    __Pen.left(2)
__Pen.left(100)
for __count in range(70):
    __Pen.backward(0.8)
    __Pen.right(0.3)
__Pen.end_fill()
for __count in range(1000):
    __Pen.penup()
    __Pen.goto(random.randint((-500), 500), random.randint((-300), 300))
    __Pen.pendown()
    __Pen.dot(random.randint(2, 8))

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页