变量名不能以数字开头,不能含有运算符,所以除了最后两个其他都是正确的
grade = {0:"E",1:"E",2:"E",3:"E",4:"D",5:"D",6:"C",7:"C",8:"B",9:"A",10:"A"}
score = eval(input())
print(grade[score//10])
第一题:
score = int(input())
if 0<=score<=39:
print('E')
elif 40<=score<=59:
print('D')
elif 60<=score<=79:
print('C')
elif 80<=score<=89:
print('B')
elif 90<=score<=100:
print('A')
如有帮助,请点击一下采纳谢谢
标识符可以由字母、数字、下画线(_)组成,其中数字不能打头。
标识符不能是 Python 关键字,但可以包含关键字。
标识符不能包含空格。