Think before you speak, read before you think.

python类的风格

by

in

你的class应该使用驼峰式大小写

__init__不应该做太多的事

函数应该使用下划线


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *