pycharm python3.8 sum求和语法 求解
L = [] x = 1 while x <= 100: L.append(x * x) x = x + 1 print(sum[L])
报错整数不可调用。
TypeError: 'int' object is not subscriptable
L = [] x = 1 while x <= 100: L.append(x * x) x = x + 1 print(sum[L])
报错整数不可调用。
TypeError: 'int' object is not subscriptable
2020-03-17
举报