此题为判断题(对,错)。
第1题:
第2题:
第3题:
以下对于列表的相关操作中哪些项有正确的输出结果?
A.>>> language = list('PHP'); >>> language[1:] = 'ython'; >>> print language ['P', 'y', 't', 'h', 'o', 'n']#B.>>> print list('Life is short, you need Python.').count('is') 1#C.>>> x = [2, 3, 0, 4, 1] >>> x.sort() >>> print x [0, 1, 2, 3, 4]#D.>>> words = ['Life', 'is', 'short', 'you', 'need', 'Python'] >>> words.index('you') 4第4题:
第5题:
以下对于列表的相关操作中哪些项有正确的输出结果?
A.>>> language = list('PHP'); >>> language[1:] = 'ython'; >>> print(language) ['P', 'y', 't', 'h', 'o', 'n']#B.>>> print(list('Life is short, you need Python.').count('is')) 1#C.>>> x = [2, 3, 0, 4, 1] >>> x.sort() >>> print(x) [0, 1, 2, 3, 4]#D.>>> words = ['Life', 'is', 'short', 'you', 'need', 'Python'] >>> words.index('you') 4第6题:
在MOST数据总线系统中, 把光信号变成电压,然后该电压被发送到MOST收发器。