摘要:
a=0def hanoi(n,src,dst,mid): global a if n==1: print("{}:{}->{}".format(1,src,dst)) a+=1 else: hanoi(n-1,src,mid,dst) print("{}:{}->{}".format(n,src,d 阅读全文
摘要:
import turtle turtle.setup(500,500) turtle.fillcolor("red") turtle.begin_fill() for i in range(5): turtle.fd(100) turtle.right(144) turtle.end_fill() 阅读全文