对于序列numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],以下相关操作和对应输出正确的是哪一项()
A. >>> numbers[0: 2]
B. [1, 2, 3]
C. B.>>> numbers[: -1]
D. [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
E. C.>>> numbers[-2:]
F. [9, 10]
G. D.>>> numbers[0::3]
H. [1, 3, 5, 7, 9]
以下哪一条语句不能实现”hello world”字符串在一行中输出()
A. print(‘hello world’)
B. print(“hello world”)
C. print(”’hello
D. world”’)
E. D.print(‘hello \
F. world’)
以下对于序列的相关操作中正确的输出结果是哪一项()
A. >>> [5] * 2
B. [10]
C. B.>>> word = ‘cloud’; word[5]
D. ‘d’
E. C.>>> word = ‘cloud’; print(min(word))
F. c
G. D.>>> print(‘Merry Xmas ‘ + 12.25)
H. Merry Xmas 12