运行成功,输出错误??
def move(n, a, b, c): if n==1: print(a,'-->',c) return else: move(n-1,a,c,b) move(1,a,b,c) move(n-1,b,a,c) return move(4, 'A', 'B', 'C')
def move(n, a, b, c): if n==1: print(a,'-->',c) return else: move(n-1,a,c,b) move(1,a,b,c) move(n-1,b,a,c) return move(4, 'A', 'B', 'C')
2019-07-26
举报