steps = 0
def hanoi(src,des,mid,n):
global steps
if n == 1:
steps += 1
Python练习题11:汉诺塔实践
最新推荐文章于 2023-03-01 17:55:46 发布
steps = 0
def hanoi(src,des,mid,n):
global steps
if n == 1:
steps += 1