摘要: count=0def hanoi(n,A,C,B): global count if n==1: print("{}:{}->{}".format(1,A,C)) count+=1 else: hanoi(n-1,A,B,C) print("{}:{}->{}".format(1,A,C)) cou 阅读全文
posted @ 2020-03-29 21:28 Lysim 阅读(89) 评论(0) 推荐(0)