Python汉诺塔问题
摘要:move=0 def han (n,one,two,mid): global move if n==1: print("{}号盘子:从{}到{}".format(1,one,two)) move+=1 else: han(n-1,one,mid,two) print("{}号盘子:从{}到{}".f
阅读全文
posted @ 2020-03-31 11:58
posted @ 2020-03-31 11:58
posted @ 2020-03-22 22:28
posted @ 2020-03-14 13:01