以下选项中,不是建立字典的方式是( )
A. z = {1:[1,2],3:[3,4]}
B. z = {[1,2]:1,[3,4]:3}
C. z = {(1,2):1,(3,4):3}
D. z = {‘太阳’:1,’月亮’:2}
下列代码的运行结果是( )。ls = [1.2,"py",[100,"abcd"],6.6]print(ls[2][-1][1])
A. a
B. b
C. c
D. d
下面代码的输出结果是( )。x = (9,1,8,3)print(sorted(x,reverse = True))
A. [9,1,8,3]
B. [3,8,1,9]
C. [9,8,3,1]
D. [1,3,8,9]
下面代码的输出结果是( )。L = list(range(2,5))print(L)
A. [2,3,4]
B. [2,3,4,5]
C. [3,4,5]
D. [2,5]