摘要: 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 阅读全文
posted @ 2020-03-31 16:08 hhh黄如 阅读(127) 评论(0) 推荐(0)