python命名规范
摘要:
1、模块 模块尽量使用小写命名,首字母保持小写,尽量不要用下划线(除非多个单词,且数量不多的情况) # 正确的模块名 import decoder import html_parser # 不推荐的模块名 import Decoder 2、类名 类名使用驼峰(CamelCase)命名风格,首字母大写 阅读全文
posted @ 2020-02-21 14:32 crystal1126 阅读(378) 评论(0) 推荐(0) 编辑