A. if (x<1): y=x**2-2*x+3else: y=math.sqrt(x-1) B. if (x<1): y=x**2-2*x+3y=math.sqrt(x-1) C. y=x**2-2*x+3if (x>=1):y=math.sqrt(x-1) D. if (x<1): y=x**2-2*x+3if (x>=1):y=math.sqrt(x-1)
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=ymaxNum=x
A. if(x>=1):f=2*x+1f=3*x/(x-1) B. if(x>=1):f=2*x+1if(x<1):f=3*x/(x-1) C. f=2*x+1if(x<1):f=3*x/(x-1) D. if(x<1):f=3*x/(x-1)else:f=2*x+1
A. 输出1 B. 输出True C. 输出False D. 编译错误
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
A. Equal B. NotEqual C. 编译错误 D. 运行时错误