a = 0 b = 1 while b < 10: print(b) a,b = b,a+b
运行结果: 1 1 2 3 5 8
posted on 2020-12-02 20:06 小白在此 阅读(98) 评论(0) 编辑 收藏 举报