查询成绩中的坑 score = int(input('请输入成绩:')) if score>=90: print('优秀') if score>=80: print('良好') elif score>=70: print('还行') 注意:以上代码中如果第二个if并非elif则会出现打印两种结果的情况,如输入80以上的成绩便会输出,优秀和良好两个结果