摘要: 基础算法笔记-Python 整理自B站视频 https://www.bilibili.com/video/BV1uA411N7c5 递归 1. 汉诺塔问题 # n个圆盘,从a经过b移动到c def hanoi(n, a, b, c): if n > 0: # 将n-1个圆盘从a经过c移动到b han 阅读全文
posted @ 2024-08-04 22:35 rustling 阅读(10) 评论(0) 推荐(0) 编辑