首页->Python练习题
多选题 : 以下表达式,作为条件时,和False 等价的是()。
(A)None
(B)(False)
(C)[false]
(D){ False}
参考答案
更多Python练习题试题
- 1已知x=np.array([3,5,1,9,6,3]),表达式x[x>5].sum()的值为 15
- 2已知字典 x = {i:2*i for i in range(3)},那么表达式 sum(item[1] for item in x.items()) 的值为___________。
- 3已知字符串weather中存放了若干以逗号分隔的天气,如weather='sunny,rainny,windy,sunny,rainny,windy,sunny,windy,windy,sunny,sunny,windy',统计每种天气出现的次数。
- 4list1=[1,2,3,4],执行list1.reverse()后,list1的值为()
- 5下面代码的输出结果是( ) li = ["hello",se,[["m","n"],["h","kelly"],all],123,446] print(li[2][1][1])