Python中,执行下列语句序列: a=['你','我','他']; b=sorted(a) 则:id(a)==id(b)的值为( )。
查看答案
在Python中设有s=[1,2,3,4,5],执行语句序列: s=s[::-1]; s[:2]='a';del s[2:]; s.append('b');s[2:3]='xy';s[-1:]=[] 执行后,s值为( )。
A. ['a',3,'y']
B. ['a',3,'x']
C. [4,['x','y']]
D. [4,'x','y']
在Python中设有a=['dog',3.14,'apple'] 则: a[-3][0]的值为( )。
A. 'dog'
B. 'd'
C. 'apple'
D. a'
Python语句:print('\x48\x41!') 的运行结果是( )。其中:, ord('A')=65
A. '\x48\x41'
B. 4841!
C. 4841
D. HA!
Python语句序列: d={1:'a',2:'b',3:'c'};print(len(d)) 的运行结果是( )。
A. 1
B. 3
C. 6