数据结构与算法--python学习笔记三(听了左神的课,本身整理的,左神仍是强啊)

def hanoiProcess(n, fromStr, toStr, helpStr): if n == 1: print("Move 1 from " + fromStr + ' to ' + toStr) else: hanoiProcess(n - 1, fromStr, helpStr, toStr) print("Move
相关文章
相关标签/搜索