题目内容

Python语句temp=['a','1',2,3,None,];print(len(temp))的输出结果是哪一项?()

A. 3
B. 4
C. 5
D. 6

查看答案
更多问题

Python语句temp=set([1,2,3,2,3,4,5]);print(len(temp))的输出结果是哪一项?()

A. 7
B. 1
C. 4
D. 5

执行下面的操作后,输出的结果是多少?()lst1=[3,4,5,6]lst2=lst1lst1[2]=100print(lst2)

A. [3,4,5,6]
B. [3,4,100,6]
C. [3,100,5,6]
D. [3,4,100,5,6]

Python语句s={'a', 1, 'b', 2}; print(s[b])的输出结果是哪一项?()

A. 2
B. 1
C. 'b'
D. 语法错误

以下代码的输出结果是()。ls = ["apple", "red", "orang"]def funC(a):ls.append(a)returnfunC("yellow")print(ls)

A. [ ]
B. ["apple", "red", "orang"]
C. ["yellow"]
D. ["apple", "red", "orang", "yellow"]

答案查题题库