有a,b,c三个柱子,n个盘子. def move(n, a, b, c): if n == 1: print('move', a, '-->', c) else: move(n-1, a, c, b) move(1, a, b, c) move(n-1, b, a, c) move(5, 'A', 'B', 'C') 执行结果为: === RESTART: C:/Users/0923/AppData/Local/Programs/Python/Python37/test.py ===move…