擅长:python、mysql、java
<p>政治公众人物8建议绝对进口:</p>
<blockquote>
<p>Absolute imports are recommended, as they are usually more readable and tend to be better behaved (or at least give better error messages) if the import system is incorrectly configured (such as when a directory inside a package ends up on sys.path ):</p>
</blockquote>
<p>至于<code>PYTHONPATH</code>,现在最好在您处理项目的每个终端会话中设置一次。一旦您继续使用像pycharm这样的IDE,它将自动为您管理</p>