Python畫圖案

一.畫五角星3d import turtle t = turtle.Turtle() t.speed() #設置畫筆速度最快 c=['red','green','purple','blue'] for x in range(5): t.color(c[x%4]) #設置顏色 t.forward(100) #畫筆向前移動距離100 t.right(144) #畫筆繪製角度
相關文章
相關標籤/搜索