x = x + 1一元一次方程在python在while 循环下是怎么计算的?
L = [] x = 1 while x <= 100: L.append(x * x) x = x + 1 print sum(L)
这个x=x+1是怎么计算的x=1+1=2然后while循环x=2+1直到x <= 100?
L = [] x = 1 while x <= 100: L.append(x * x) x = x + 1 print sum(L)
这个x=x+1是怎么计算的x=1+1=2然后while循环x=2+1直到x <= 100?
2018-01-20
举报