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

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