以下Python代码的输出结果是___________。list(range(3))
A: [0,1,2]
B: [1,2,3]
C: [0,1,2,3]
D: [1,2,3,4]
A: [0,1,2]
B: [1,2,3]
C: [0,1,2,3]
D: [1,2,3,4]
举一反三
- 语句list(range(5)) 的结果是( )。 A: [0, 1, 2, 3, 4,5] B: [ 1, 2, 3, 4,5] 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]
- 以下Python代码的输出结果是___________。list(range(3)) A: [0,1,2] B: [1,2,3] C: [0,1,2,3] D: [1,2,3,4]
- 以下Python代码的输出结果是___________。list(range(3)) A: [0,1,2] B: [1,2,3] C: [0,1,2,3] D: [1,2,3,4]