python 3.x
This question already has an answer here:
There appears to be nothing wrong with your code. I was able to remove turtle.exitonclick()
and run it without problem using https://repl.it/languages/python_turtle
I even cranked up the initial depth to 4
to get this lovely image
Remarks
This bit of code doesn't do anything, you can just remove it
xCenter = xCenter
yCenter = yCenter
edgeLength = edgeLength
depthLeft = depthLeft
链接地址: http://www.djcxy.com/p/14168.html
上一篇: 递归比循环更快吗?
下一篇: python 3.x