Modules should have short, all-lowercase names. Underscores can be
used in the module name if it improves readability. Python packages
should also have short, all-lowercase names, although the use of
underscores is discouraged.
对于类
Class names should normally use the CapWords convention.
从Python软件基金会网站(关于PEP8):
对于模块
对于类
针对您的特定情况
如果你的类名为Foo,那么你将把你的模块称为“Foo”,全部小写。有关命名约定和其他样式建议的更多信息,请参见PEP 8,Python样式指南。在
相关问题 更多 >
编程相关推荐