单项选择题
在Python中,如何创建一个字符串?()
A.str =""
B.str =str()
C.str =new String()
D.str =None
点击查看答案&解析
相关考题
-
单项选择题
在Python中,如何关闭一个文件?()
A.file.close()
B.close(file)
C.file.terminate()
D.file.exit() -
多项选择题
在Python中,如何删除字典中的一个键值对?()
A.del dict[key]
B.dict.remove(key)
C.dict.delete(key)
D.dict.pop(key) -
单项选择题
在Python中,如何检查一个元素是否存在于列表中?()
A.item in list
B.list.contains(item)
C.list.indexOf(item)!=-1
D.A和C都对
