分型意外收获
from turtle import *
speed(9)
hideturtle()
def ban(s,c):
if c == 1:
return s
else:
return ban(s/2,c-1)
def juxfx(cd,cc):
for i in range(4):
fd(cd/2)
if cc>1:
rt(135)
juxfx(cd/2,cc-1)
rt(225)
fd(cd/2)
lt(90)
juxfx(200,5)
posted on 2020-11-19 16:36 Heart&ware 阅读(51) 评论(0) 编辑 收藏 举报