# -*- coding: utf-8 -*- import turtle as tt win = tt.Screen() ###### tt.shape("classic") tt.pencolor("blue") for i in range(0,360,45): tt.penup() # 提起畫筆 tt.seth(i) # 設定面相角度 tt.fd(50) # 前移50單位 tt.pendown() # 放下畫筆 tt.fd(70) # 前移70單位 tt.up() # 提起畫筆 tt.home() # 回到原點 ###### win.exitonclick()