數據結構與算法--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
相關文章
相關標籤/搜索