摘要:
def hanoi(n,src,dst,mid): global count if n==1: print('{}:{}->{}'.format(1,src,dst)) count+=1 else: hanoi(n-1,src,mid,dst) print('{}:{}->{}'.format(n,src,dst)) count+=1 hanoi(n-1,mid,dst,src)count=0ha 阅读全文
posted @ 2019-09-02 22:38
Aluosen
阅读(858)
评论(0)
推荐(0)
浙公网安备 33010602011771号