下面代码的输出结果是a=[1,2,3]b=a[:]print(b)
A: []
B: [1, 2, 3]
C: 0xF0A9
D: [3,2,1]
A: []
B: [1, 2, 3]
C: 0xF0A9
D: [3,2,1]
举一反三
- 下面代码的输出结果是a = [1, 2, 3]b = a[:]print(b) A: [] B: [1, 2, 3] C: [3,2,1] D: 0xF0A9
- 下面代码的输出结果是 a = [1, 2, 3] b = a[:] print(b) A: [] B: [3,2,1] C: 0xF0A9 D: [1, 2, 3]
- 下面代码的输出结果是a=[1,2,3] b=a[:] print(b) A: 0xF0A9 B: [1, 2, 3] C: [] D: [3,2,1]
- 下面代码的输出结果是a=[1,2,3]b=a[:]print(b) A: [] B: [1, 2, 3] C: 0xF0A9 D: [3,2,1]
- 下面代码的输出结果是a=[1,2,3] b=a[:] print(b) A: 0xF0A9 B: [1, 2, 3] C: [] D: [3,2,1]