l1=[1,2,3,4,5,6,7,8,9]l2=l1l3=l1.copy()l2[5]=11print(l3)
举一反三
- 有六组量子数: (1) n=3,l=1,m=-1;(2) n=3,l=0,m=0;(3) n=2,l=2,m=-1;(4) n=2,l=1,m=0;(5) n=2,l=0,m=-1;(6) n=2,l=3,m=2 其中正确的是( )。 A: (1)(3)(5) B: (2)(4)(6) C: (1)(2)(4) D: (1)(2)(3)
- 列表L=[1,[2,3],[]]想向列表L的第三个元素中添加新元素4,下列哪个语句正确? ( ) A: L[0]=4 B: L[3]=4 C: L[2]=4 D: L[2].append(4)
- 在下列六组量子数中,正确的是① n=3,l= 1,m=-1 ② n = 3,l= 0,m = 0③ n = 2,l= 2 ,m=-1 ④ n = 2, l = 1 ,m = 0 ⑤ n = 2,l = 0,m =-1 ⑥ n= 2,l = 3 , m= 2 A: (1),(2),(4) B: (2),(4),(6) C: (1),(2),(3) D: (1),(3),(5)
- 下面程序的输出结果是( )。L=[('b', 3), ('c', 1), ('d', 2), ('a', 5)]L.sort()print(L) A: [('b', 3), ('c', 1), ('d', 2), ('a', 5)] B: [('c', 1), ('d', 2), ('b', 3), ('a', 5)] C: [('a', 5), ('b', 3), ('c', 1), ('d', 2)] D: {('a', 5), ('b', 3), ('c', 1), ('d', 2)}
- 下面程序的输出结果是( )。L=[('b', 3), ('c', 1), ('d', 2), ('a', 5)]L.sort()print(L) A: {('a', 5), ('b', 3), ('c', 1), ('d', 2)} B: [('b', 3), ('c', 1), ('d', 2), ('a', 5)] C: [('c', 1), ('d', 2), ('b', 3), ('a', 5)] D: [('a', 5), ('b', 3), ('c', 1), ('d', 2)]