下面代码>>> x = ((i+2)**2 for i in range(10))>>> xA. (4, 9, 16, 25, 36, 49, 64, 81, 100, 121)B. [4, 9, 16, 25, 36, 49, 64, 81, 100, 121]C. 4, 9, 16, 25, 36, 49, 64, 81, 100, 121D. at 0x000002A6BC2B0D00>
A
B
C
D
已知x = {1:1, 2:2},那么执行语句x[3] = 3之后,表达式sorted(x)的值为____________________。A.[1, 2, 3] B.(1, 2, 3) C.{1:1,2:2,3:3} D.[(1, 1), (2, 2), (3, 3)]
A
B
C
D
已知 x = {1,2,3,4,5,6}, 则下列哪句代码会报错()A. x.remove(1)B. x.discard(1)C. x.remove(7)D. x.discard(7)E. x.pop()
A
B
C
D
E