下面代码的输出结果是 listV=list(range(5)) print(2 in listV)

admin2019-08-30  43

问题 下面代码的输出结果是
listV=list(range(5))
print(2 in listV)

选项 A、True
B、False
C、0
D、一1

答案A

解析 list()和range()是Python的内置函数,list()可用于生成列表,range(5)可用于产生数字序列0、1、2、3、4。
转载请注明原文地址:https://kaotiyun.com/show/oX6p777K
0

最新回复(0)