0
我想要循环添加integers
到列表和break
当用户点击返回。如何打破我的循环?
我该如何设法做到这一点?
lstScore = []
count = 0
while count >= 0:
count = int(input("Enter a score :"))
if count != int:
break
elif:
lstScore.append(int(count))
你想让它当用户按下回车键结束INT转换错误? – eyllanesc