猫史档案馆


【Python作品分享】万花筒【作品秀】

用户:一只蚊子1tXd一只蚊子1tXd查看:0 回复:1 评论:0 创建时间:2022-01-25T19:15:11


【作品展示】

center_image

 

【作品介绍】

LOOK!

 

【作品源代码】

import turtle as t
from itertools import cycle as d
ck = d(['red', 'orange', 'yellow', 'green', 'blue', 'purple'])
t.bgcolor('black')
t.speed(9)
def d(s, c, d):
    t.pencolor(next(ck))
    t.circle(s)
    t.right(c)
    t.forward(d)
    return s, c, d
f, g, h = d(30, 0, 1)
while True:
    f, g, h = d(f+5, g+1, h+1)

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
芜湖咸鱼芜湖咸鱼

沙发

点赞0


评论