利用条件运算符的嵌套来完成此题
score = int(input('input score:')) if score >= 90: grade = 'A' elif score >= 60: grade = 'B' else: grade = 'C' print('%d belongs to %s' % (score,grade))