请问哪里错了
num_list = []
n = 1
while n <= 100:
p = n * n
num_list.append(p)
n + 1
s = sum(num_list)
print(s)
报错
File "index.py", line 2
n = 1
num_list = []
n = 1
while n <= 100:
p = n * n
num_list.append(p)
n + 1
s = sum(num_list)
print(s)
报错
File "index.py", line 2
n = 1
2023-10-12
举报