python score = eval(input("输入成绩:")) if score >= 90: g = 'A' elif score >= 80: g = 'B' elif score >= 70: g = 'C' elif score >= 60: g = 'D' else: g = 'E' print('分数{},转换后{}'.format(score, g)) 浏览量: 144