单选题
适中
#5368
执行以下程序代码 score = eval(input("请输入成绩:")) if score > 0 and score < 60: print("不及格")…
执行以下程序代码
score = eval(input("请输入成绩:"))
if score > 0 and score < 60:
print("不及格")
elif score >= 60 and score <=100:
print("及格")
else:
print("请输入正确的成绩")当输入60时,输出结果是?( )
答案与解析
正确答案:A
解析
该题考查程序的多选择分支结构,因为60介于60(含)和100之间,故输出结果为“及格”。