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