小尹学python

导航

2021年10月21日 #

Python:yield功能导出斐波那契数列

摘要: def fib(max_count): first_num = 1 seceond_num = 0 count = 0 while count < max_count: finale_num = first_num + seceond_num first_num = seceond_num sece 阅读全文

posted @ 2021-10-21 10:30 小尹学python 阅读(59) 评论(0) 推荐(0)