python用turtle畫小豬佩奇

相關代碼以下:web from turtle import * def nose(x, y): # 鼻子 penup() # 提起筆 goto(x, y) # 定位 pendown() # 落筆,開始畫 setheading(-30) # 將烏龜的方向設置爲to_angle/爲數字(0-東、90-北、180-西、270-南) begin_fil
相關文章
相關標籤/搜索