在python中如何畫圓?
提問(wèn)人:楊紫紅發(fā)布時(shí)間:2020-11-18
import turtle #引進(jìn)海龜,你可以開(kāi)始使用它
myColor=["red","green","brown"]
index =0
for x in range(250):
turtle.pencolor(myColor[index])
index +=1
if index == 3:
index = 0
turtle.forward(x*2)
turtle.left(92)
繼續(xù)查找其他問(wèn)題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評(píng)論>>