G90时的X10,Y20与G91时的X10、Y20有何区别?
举一反三
- 已知intx=10,y=20,z=30;以下语句:if(x A: x=10,y=20,z=30 B: x=10,y=20,z=10 C: x=20,y=30,z=10 D: x=20,y=30,z=20
- 已知 x = 10, y = 20, z = 30; 以下语句执行后x,y,z的值是:if (x = 20) z = x; y = z; A: x = 10, y = 20, z = 30 B: x = 10, y = 10, z = 10 C: x = 20, y = 20, z = 20 D: x = 30, y = 30, z = 30
- 已知int x=10, y=20, z=30;,程序段if (x>y) z=x;x=y;y=z;执行后x、y、z的值是( )。 A: x=20, y=10, z=10 B: x=20, y=30, z=30 C: x=20, y=30, z=10 D: x=20, y=30, z=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
- 下面代码的输出结果是 def exchange(a,b): a,b = b,a return (a,b) x = 10 y = 20 x,y = exchange(x,y) print(x,y) A: 20 10 B: 20 20 C: 10 20 D: 10 10