摘要: from functools import lru_cache @lru_cache def fibonacci(n): print(n) if n == 1 or n == 2: return 1 return fibonacci(n-1) + fibonacci(n-2) if __name__ 阅读全文
posted @ 2023-09-19 23:32 fangpinz 阅读(2) 评论(0) 推荐(0) 编辑