摘要: 一.非可视化代码 def printf(A,C): #盘子移动的输出格式 print("{} --> {}".format(A,C)) def move(n,A,B,C): if n == 1: printf(A,C) #将最后1个盘子从A座移到C座 else: move(n-1,A,C,B) #将 阅读全文
posted @ 2019-03-25 20:53 郑zhi灿 阅读(919) 评论(0) 推荐(0) 编辑