为什么不能用for,求解
L = []
x = 1
for x in L:
if x<=100:
L.append(x*x)
x = x +1
else:
print erorr
print sum(L)
L = []
x = 1
for x in L:
if x<=100:
L.append(x*x)
x = x +1
else:
print erorr
print sum(L)
2020-01-03
举报