37,743
社区成员
发帖
与我相关
我的任务
分享 def start(self):
'''
Start child process
'''
assert self._popen is None, 'cannot start a process twice'
assert self._parent_pid == os.getpid(), \
'can only start a process object created by current process'
assert not _current_process._config.get('daemon'), \
'daemonic processes are not allowed to have children'
_cleanup()
self._popen = self._Popen(self)
self._sentinel = self._popen.sentinel
_children.add(self)
是我没表达清楚,这里的单引号括起来的字符串是起注释作用的参数。
是我没表达清楚,是想问Python中的注释不是只有#或‘’‘这样的方法吗,这里的单引号也是表示注释吗?