python学习:多重赋值顺序

固然,咱们可使用 Python 完成比二加二更复杂的任务。例如,咱们能够写一个生成 菲波那契 子序列的程序,以下所示:python   >>> # Fibonacci series: ... # the sum of two elements defines the next ... a, b = 0, 1 >>> while b < 10: ... print(b) ... a,
相关文章
相关标签/搜索