单项选择题
在Python中,如何获取当前进程ID?()
A.os.getpid()
B.process.id()
C.getpid()
D.sys.getProcessId()
点击查看答案&解析
相关考题
-
单项选择题
在Python中,如何将一个字符串反转?()
A.str[::-1]
B.str.reverse()
C.reverse(str)
D.reversed(str) -
单项选择题
在Python中,如何创建一个子类?()
A.class SubClass(SuperClass):pass
B.class SubClass inherits SuperClass
C.class SubClass:super(SuperClass)
D.class SubClass ->SuperClass -
单项选择题
在Python中,如何从JSON字符串中解析一个字典?()
A.json.loads(json_str)
B.json.parse(json_str)
C.dict.fromJSON(json_str)
D.parseJSON(json_str)
