Python官方文档: https://www.python.org/dev/peps/pep-0008/
代码风格:
"""Return foobang
Optional plotz says to frobnicate the bizbaz first.
"""
比如说:def func(file=’d://1.txt’)
命名规则:
编码建议:
正确: ifa is not None:
错误: if a not isNone:
正确: deff(x): return x*2
错误: f = lambda x: x*2
原文地址:http://blog.csdn.net/jerry_1126/article/details/46592415