score = 95 if score < 60: ? ? print('抱歉,考試不及格') elif score >= 80: ? ? print('恭喜你,拿到優(yōu)秀的成績(jī)') elif score >= 90: ? ? print('恭喜你,拿到卓越的成績(jī)') else: ? ? print('恭喜你,考試及格')

qq_慕仙9101282
2024-03-18
2 回答
舉報(bào)
0/150
提交
取消
2025-02-23
代碼是從最上面一行一行開(kāi)始運(yùn)行,運(yùn)行到elif score>=80,score符合要求就輸出了
2024-03-18
score =?95
if score >= 90: ? ?
? ? print('恭喜你,拿到卓越的成績(jī)')
elif score >= 80: ? ?
? ? print('恭喜你,拿到優(yōu)秀的成績(jī)')
elif score?>=?60: ? ?
? ? print('恭喜你,考試及格')
else: ? ??
????print('抱歉,考試不及格')