我如何更改有关 python 中 EOF 问题的代码?

问题描述 投票:0回答:0
while True :
    name = str(input("Enter the name: "))
    if name == 'X' :
            break
    else :
        math = int(input("Enter %s's Math score: "%(name)))# Fill the ??? 
        eng = int(input("Enter %s's English score: "%(name)))# Fill the ??? 
        if math >= 90 and eng >= 90 :
            hall_of_fame.append([name,math+eng])
print(hall_of_fame)

为什么会出现EOF错误?

我要删除错误

python eof
© www.soinside.com 2019 - 2024. All rights reserved.