1 #!/usr/bin/env python3 2 a,b = 0,1 3 while b < 100: 4 print(b,end = ' ') 5 a,b = b,a+b 6 print()运行结果如下图: