Python入門學習day05-用turtle畫圖-黑夜和星星

夜空中最亮的星 import turtle import random t = turtle.Turtle() t.speed(0) #繪製黑夜 t.width(80) for x in range(20): t.up() t.goto(-250,250-x*60) t.down() t.color(x*10,x*10,x*10) t.fd(1000) t.
相關文章
相關標籤/搜索