以下代码的输出结果是() a=4%2 print(a)
A: 0
B: 2
C: 4
D: 1
A: 0
B: 2
C: 4
D: 1
举一反三
- 下面代码的输出结果是() vlist = list(range(5)) print() A: [0, 1, 2, 3, 4] B: 0;1;2;3;4; C: 0,1,2,3,4, D: 0 1 2 3 4
- 下面代码的输出结果是vlist = list(range(5))for e in vlist: print(e,end=",") A: 0 1 2 3 4 B: 0,1,2,3,4, C: [0, 1, 2, 3, 4] D: 0;1;2;3;4;
- vlist = list(range(5))for e in vlist:print(e,end=",")上面代码的输出结果是( ) A: 0;1;2;3;4; B: 0 1 2 3 4 C: 0,1,2,3,4, D: [0, 1, 2, 3, 4]
- 以下代码的输出结果是()for i in range(0,10,2): print(i,end="") A: 0 2 4 6 8 B: 2 4 6 8 C: 0 2 4 6 8 10 D: 2 4 6 8 10
- 阅读下面Python代码,选择正确输出结果:() for i in range(5): if i == 3: continue print(i,end=" ") continue print(i,end=" ") A: 0 1 2 3 4 5 B: 0 1 2 3 4 C: 2000 1 2 D: 0 1 2 4