下面代码的输出结果是( ).MA = lambda x,y:(x > y) * x + (x [ y) * yMI = lambda x,y:(x ] y) * y + (x < y) * xa = 10b = 20print(MA(a,b))print(MI(a,b))
A: 20,10
B: 10,20
C: 10,10
D: 20,20
A: 20,10
B: 10,20
C: 10,10
D: 20,20
举一反三
- 下面代码的输出结果是( ).MA = lambda x,y:(x > y) * x + (x [ y) * yMI = lambda x,y:(x ] y) * y + (x < y) * xa = 10b = 20print(MA(a,b))print(MI(a,b)) A: 20,10 B: 10,20 C: 10,10 D: 20,20
- 下面代码的输出结果是(). MA = lambda x,y:(x > y) * x + (x < y) * y MI = lambda x,y:(x > y) * y + (x < y) * x a = 10 b = 20 print(MA(a,b)) print(MI(a,b)) A: 20,10 B: 10,20 C: 10,10 D: 20,20
- 下面代码的输出结果是( ).MA = lambda x,y:(x > y) * x + (x [ y) * yMI = lambda x,y:(x ] y) * y + (x < y) * xa = 10b = 20print(MA(a,b))print(MI(a,b)) A: 20,10 B: 10,20 C: 10,10 D: 20,20
- 下面代码的BIG= lambda x,y :(x>y) * x+(x<y) * ySM= lambda x,y: (x>y) * y+(x<y) * xa=10b=20print(BIG(a,b),SM(a,b))输出结果是( ) A: 10 10 B: 20 20 C: 20 10 D: 10 20
- 中国大学MOOC: 下面代码的输出结果是( ).MA = lambda x,y:(x > y) * x + (x < y) * yMI = lambda x,y:(x > y) * y + (x < y) * xa = 10b = 20print(MA(a,b))print(MI(a,b))