执行以下语句的结果:dict1={"x":1,"y":2,"z":3}dict2={"x":4,"a":5}dict1.update(dict2)
A: {"x":1,"y":2,"z":3,"x":4,"a":5}
B: {"x":4,"a":5,"x":1,"y":2,"z":3}
C: 有重复项,结果有误!
D: {"x":4,"y":2,"z":3,"a":5}
A: {"x":1,"y":2,"z":3,"x":4,"a":5}
B: {"x":4,"a":5,"x":1,"y":2,"z":3}
C: 有重复项,结果有误!
D: {"x":4,"y":2,"z":3,"a":5}
举一反三
- int x=3,y,z;<br/>y=-x++;<br/>z=y+8/++x;<br/>Console.WriteLine{{0},{1},{2}",x,y,z);<br/>此程序的输出结果是____。 A: 5,-3,-2 B: 4,-3,-1 C: 4,-4,-2 D: 5,-4,-2
- 已知int x=1,y=2,z=3;以下语句执行后x,y,z的值是( ). if(x>y) z=x; x=y; y=z; A: x=1, y=2, z=3 B: x=2, y=3, z=3 C: x=2, y=3, z=1 D: x=2, y=3, z=2
- 填写执行结果:dict1={"x":1,"y":2,"z":3}dict1.popitem() A: {"x":1} B: {"x":1,"y":2} C: {"z":3"}
- 若x=[1 2 3 4 5];y=[2 -1 4 3 -2];则z=x.*y=()
- 已知x=1,y=2,z=3,执行下列语句if(x>y) z=x;x=y;y=z;则x,y,z的值分别是 A: x=1,y=2,z=3 B: x=2,y=3,z=1 C: x=2,y=2,z=1 D: x=2,y=3,z=3