Python3 源码中注释的问题
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)
这是Python3.6 Process模块的源码,想问下大神,为什么“ assert self._popen is None, 'cannot start a process twice' ”出现这种,后面的英文是注释或提示的意思嘛?
...全文
相关推荐
Python注释快捷键详解[项目源码]
本文详细介绍了Python编程中常用的注释快捷键,包括单行注释和多行注释的操作方法。单行注释可通过在代码前加#或使用Ctrl+/快捷键实现;多行注释同样使用Ctrl+/快捷键,选中多行代码即可快速注释或取消注释。此外,文章还提供了其他实用的IDE快捷键,如ALT+3/4用于多行注释/取消注释,CTRL+[/]用于调整缩进,以及F1、ALT+X和TAB等快捷键的功能说明。掌握这些快捷键能显著提升编程效率,适合Python开发者学习和参考。
python代码游戏源码 九宫格有详细注解,适合新手一看就懂.rar
python代码游戏源码 九宫格有详细注解,适合新手一看就懂
基于Python实现的桥梁易损性分析源码+代码注释.zip
基于Python实现的桥梁易损性分析源码+代码注释.zip
基于pyside6开发的windows平台悬浮球工具python源码+项目说明+超详细注释.zip
基于pyside6开发的windows平台悬浮球工具python源码+项目说明+超详细注释.zip
Python3-基础语法(纯文本)
本文档适合 python入门使用,主要介绍的是python3的一些基础知识。


