猫史档案馆


【Python作品分享】新的作品【求助帖】

用户:直率的树毛蛹g4Se直率的树毛蛹g4Se查看:0 回复:1 评论:0 创建时间:2022-08-16T10:57:45


【作品展示】

center_image

 

【作品介绍】

特效,点个赞吧,再评论加收藏

 

【作品源代码】

from turtle import *

colors = ["red", "yellow", "blue", "lime"]
bgcolor("black")

x = 6
t = [Turtle(), Turtle()]

for index, i in enumerate(t):
    i.speed(0)
    i.color("white")
    i.shape("circle")
    i.shapesize(0.3)
    i.width(3)
    i.pu()
    i.seth(90)
    i.fd(350)
    i.seth(-180)
    i.pd()

t[0].pu()
delay(0)
speed(0)
ht()

for i in colors:
    color(i)
    for i in range(360):
        t[0].fd(x)
        t[0].lt(1)
        pu()
        goto(t[0].pos())
        pd()
        t[1].fd(2 * x)
        t[1].lt(2)
        goto(t[1].pos())


done()

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
直率的树毛蛹g4Se直率的树毛蛹g4Se

点我有更多作品哟

点赞0


评论