使用python的遞歸畫出一顆樹

python 中使用遞歸畫出一棵樹的源代碼,大家可以參考畫出一片森林,源代碼如下: # drawTree.py import turtle as p def maketree(x,y): # p = Turtle() p.color("green") p.pensize(5) #p.setundobuffer(None) p.hideturtle() #Make the turtl
相關文章
相關標籤/搜索