PEP 257
- First line should end with a period - No blank lines allowed after function docstring - 1 blank line required between summary line and description - 1 blank line required before class docstring - Multi-line docstring closing quotes should be on a separate line - No whitespaces allowed surrounding docstring text - One-line docstring should fit on one line with quotes - Use r""" if any backslashes in a docstring
Showing
想要评论请 注册 或 登录