下面代码的输出结果是( ).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) * 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),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
- 下面代码的输出结果是( ).def exchange(a, b):a, b = b, areturn(a,b)x = 10y = 20x, y = exchange(x, y)print(x, y) A: 20 10 B: 20,10 C: 10 10 D: 20 20