Python中使用turtle繪製多個同心圓

效果 代碼 import turtle t = turtle.Pen() my_colors = ("red","green","yellow","black") t.width(4) t.speed(1) for i in range(10): #0 1 2 3 4     t.penup()     t.goto(0,-i*10) #0, -100,-200,-300,-400     t.p
相關文章
相關標籤/搜索