2019/07/04 更新
在 PEP 8 中有提到命名的規則,如下所述。
Package and Module Names
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.
When an extension module written in C or C++ has an accompanying Python module that provides a higher level (e.g. more object oriented) interface, the C/C++ module has a leading underscore (e.g. _socket).
2019/09/17 更新
在 Python bug 討論中看到,確實 "-" 是不合法的,只是不知道還適不適用在 Python 3。
沒有留言:
張貼留言