请问这是哪里有问题呀?为什么会报错嘞?我照着课程内容打的
n = int(input())
total = 0
for i in range(n):
total += int(input())
print(total)
报错内容:
Traceback (most recent call last):
File "/Users/xiaosanshao/PycharmProjects/pythonProject", line 4, in <module>
total += int(input())
ValueError: invalid literal for int() with base 10: ''