题海让大学四年没有难题
白天模式登陆

题目详情

单选题 下面的if语句统计"成绩(score)优秀的男生以及不及格的男生"的人数,正确的语句是( )

A. if ( gender == "男" and score < 60 or score >= 90): n += 1

B. if ( gender == "男" and score < 60 and score >= 90): n += 1

C. if(gender == "男" and (score < 60 or score >= 90)): n += 1

D. if(gender == "男" or score < 60 or score >= 90): n += 1

学科:Python程序设计

时间:2023-06-27 14:41:19

Copyright © 2022 津ICP备2021001502号