设 x = 10; y = 20,下列语句能正确运行结束的是:()

8 查阅

设 x = 10; y = 20,下列语句能正确运行结束的是:()

A.max = x >y ? x : y

B.if(x>y)print(x)

C.if x>y()max=x

D.if x<y: min=xelse: min=y

参考答案:

答案:if x<y: min=xelse: min=y