[雪峰磁针石博客]python 3.7极速入门教程4函数

本文教程目录 4函数 菲波那契序列: >>> # Fibonacci series: ... # the sum of two elements defines the next ... a, b = 0, 1 >>> while b < 10: ... print(b) ... a, b = b, a+b ... 1 1 2 3 5 8 本例的新特性。 第一行和最后一行有多赋值:
相关文章
相关标签/搜索