摘要: def hanoi(n,a,b,c): if n ==1: print(n,a+'->'+c) else: hanoi(n-1,a,c,b) print(n,a+'->'+c) hanoi(n-1,b,a,c) hanoi(11,'A','B','c') 阅读全文
posted @ 2018-06-13 21:03 Doshelly 阅读(87) 评论(0) 推荐(0) 编辑