编码风格
模块、类和函数请使用docstring格式注释,谷歌docstring注释
https://python-web-guide.readthedocs.io/zh/latest/codingstyle/codingstyle.html#id2
docstring就是__doc__方法的内容,在模块、函数、类的声明的第一条语句
google风格的docstring
"""
This is a groups style docs.
Parameters:
param1 - this is the first param
param2 - this is a second param
Returns:
This is a description of what is returned
Raises:
KeyError - raises an exception
"""
不要硬编码,不要使用幻数
包导入顺序,标准库、第三方库、本地库;导入模块