题目内容

以下程序的输出结果是(提示:ord(' a ')==97)()lista = [1,2,3,4,5,'a','b','c','d','e']Print(lista[2] + lista[5])

A. 100
B. d
C. "d"
D. 程序出错

查看答案
更多问题

下列语句的执行结果是()L1=[1,2,3,4,5]L2=L1del L2print(L1)

A. 1,2,3,4,5
B. [1,2,3,4,5]
C. “1,2,3,4,5”
D. 程序出错

下列语句执行结果是:()t=(12,34,5,67,8)print(type(t))

A.
B.
C.
D.

下面代码的输出结果是( )a = [1,2,3]if isinstance(a,float):print("{} is float".format(a))else:print("{} is not float".format(a))

A. a is float
B. [1, 2, 3] is float
C. a is notfloat
D. [1, 2, 3] is not float

下列语句执行结果是()a="对酒当歌,人生几何"lst=a.split()print(lst)

A. ["对酒当歌","人生几何"]
B. ("对酒当歌","人生几何")
C. ["对酒当歌",",","人生几何"]
D. ["对酒当歌,人生几何"]

答案查题题库