摘要: #汉诺塔函数递归链条递归基例表达 count =0 def hanoi (n,src,dst,mid): global count if n==1: print("{}:{}->{}".format(1,src,dst)) count +=1 else : hanoi(n-1,src,mid,dst 阅读全文
posted @ 2020-03-31 21:51 动物园天下第一 阅读(224) 评论(0) 推荐(0)