已知creature=("cat","dog","tiger","human"),则表达式“len(creature)”的值是()。
A: 1
B: 2
C: 3
D: 4
A: 1
B: 2
C: 3
D: 4
举一反三
- 已知creature=("cat","dog","tiger","human"),则表达式“creature.index("human")”的值是()。 A: 1 B: 2 C: 3 D: 4
- 已知creature=("cat","dog","tiger","human"),则表达式“"dog"increature”的值是()。 A: False B: True C: false D: true
- 元组变量t= ("cat","dog ","tiger","human"),t[::-1]的结果是:( )
- 已知X={1,2,1,2},则表达式len(X)的值为() A: 0 B: 2 C: 3 D: 4
- 已知 vec = [[1,2], [3,4]],则表达式 [[row[i] for row in vec] for i in range(len(vec[0]))]的值为______________()_________。[/i] A: [1, 2, 3, 4] B: [[1, 2, 3], 4] C: [[1, 3], [2, 4]] D: [1, 2, [3, 4]]