<p>你所介绍的是标准惯例。</p>
<blockquote>
<h2>Package and Module Names</h2>
<p>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.</p>
<p>Since module names are mapped to file names, and some file systems are
case insensitive and truncate long names, it is important that module
names be chosen to be fairly short -- this won't be a problem on Unix,
but it may be a problem when the code is transported to older Mac or
Windows versions, or DOS.</p>
<p>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. <code>_socket</code>).</p>
<h2>Class Names</h2>
<p>Almost without exception, class names use the CapWords convention.
Classes for internal use have a leading underscore in addition.</p>
</blockquote>
<p>(<a href="http://www.python.org/dev/peps/pep-0008/">Python Style Guide</a>)</p>
<hr/>
<p>参见例如</p>
<pre><code>from configparser import ConfigParser
</code></pre>
<p>(顺便说一句,在Python2.x中是ConfigParser,但在3.x中改为小写)。</p>