0
已解决
徐子宸
中级天翼
中级天翼
桌面新建文本文档
输入以下代码:
import turtle
q = turtle.Pen()
turtle.bgcolor("black")
sides=7
colors=
["red","orange","yellow","green","cyan","blue","purple"]
for x in range(360):
q.pencolor(colors[x%sides])
q.forword(x*3/sides+x)
q.left(360/sides+1)
q.width(x*sides/200)
改成 .py 形式
抖音@编程小新
0
0
0
0
0
0