下面代码的输出结果是()。MA = lambda x,y : (x > y) * x + (x < y) * yMI = lambda x,y : (x > y) * y + (x < y) * xa = 10b = 2
A: 2010
B: 2020
C: 1010
D: 1020
A: 2010
B: 2020
C: 1010
D: 1020
举一反三
- 下面代码输出结果是()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: 2010 B: 020 C: 1010 D: 2020
- 中国大学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))
- 代码:```MA = lambda x,y : (x > y) * x + (x < y) * yMI = lambda x,y : (x > y) * y + (x < y) * xa = 10b = 20print(MA(a,b),MI(a,b))```上述代码的输出结果是:( ) A: 20 20 B: 10 10 C: 20 10 D: 10 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