import turtle
def square(length,n):#边长和边数
bob = turtle.Turtle()
for i in range(n):
bob.fd(length)
bob.lt(360/n)#每次所转角度
turtle.mainloop()
square(70,6)
上一篇:如何在PS中自己来绘制形体
下一篇:golang http_file_server