下面的程序段求x和y两个数中的大数,下列哪项是不正确的()。
A. maxNum=x if x>y else y
B. maxNum=math.max(x,y)
C. if(x>y):maxNum=xelse: maxNum=y
D. if(y>=x):maxNum=yelse: maxNum=x
查看答案
下面的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
Are you willing to stand up in court and _______ that you do not recognize him?
She ________ her approval with a smile.
There are many bad customs and laws that ought to be ________ .