a,b = 0,1while b <10: print(b) a,b = b,a+b #先执行右边的计算,并且按照未修改后的值进行计算print("------------")a,b = 0,1while b < 10: print(b) k = b b = a+b a = k