元组变量t=("cat", "dog", "tiger", "human"),则 t[::-1]的结果是
A. 运行出错
B. ('human', 'tiger', 'dog', 'cat')
C. ['human', 'tiger', 'dog', 'cat']
D. {'human', 'tiger', 'dog', 'cat'}
查看答案
#0031003100360034003400361574165180115字符串 s = "I love Python",以下程序的输出结果是:s = "I love Python"ls = s.split()ls.reverse()print(ls)
A. None
B. Python love I
C. 'Python', 'love', 'I'
D. ['Python', 'love', 'I']
以下代码的输出结果是:print('{:*^10.4}'.format('Flower'))
A. ***Flow***
B. Flow
C. Flower
D. **Flower**
以下程序的输出结果是:chs = "|'\'-'|"for ch in chs:print(ch,end='')
A. |\-|
B. "|'-'|"
C. |'\'-'
D. |''-'|
以下程序的输出结果是:x= 10while x:x -= 1if x%2:print(x,end = '')else:print(x)
A. 86420
B. 864200
C. 97531
D. 975310