摘要:
实现线上汉诺塔移动问题1 n=eval(input()) 2 def hanoi(n,A,C,B): 3 if n==1: 4 print("{} --> {}".format(A,C)) 5 else: 6 hanoi (n-1,A,B,C) 7 print("{} --> {}".format( 阅读全文
posted @ 2020-04-14 21:03
litchi31
阅读(125)
评论(0)
推荐(0)