Discuss / Python / 交作业

交作业

Topic source

Meet_微风

#1 Created at ... [Delete] [Delete and Lock User]

def hanoi(n, a, b, c): if n != 0: hanoi(n-1, a, c, b) print(a,"-->",c) hanoi(n-1, b, a, c)


  • 1

Reply