摘要: 1 count = 0 2 def hanoi(n, src, dst, mid): 3 global count 4 if n == 1: 5 print("{}:{}->{}".format(1,src,dst)) 6 count += 1 7 else : 8 hanoi(n-1, src, 阅读全文
posted @ 2020-03-29 19:15 ghhzaq 阅读(88) 评论(0) 推荐(0) 编辑