标签:span 汉诺塔 style pre def class -- else ==
def move(n, A, B, C): if n == 1: print(A, ‘-->‘, C) else: move(n - 1, A, C, B) move(1, A, B, C) move(n - 1, B, A, C) move(4, ‘A‘, ‘B‘, ‘C‘)
标签:span 汉诺塔 style pre def class -- else ==
原文地址:https://www.cnblogs.com/LCXYJTM/p/12703546.html