擅长:python、mysql、java
<p>以下是第一行:</p>
<pre><code>#!/usr/bin/env python
</code></pre>
<p>Pylint消息可以在任何线路上发送。如文件所述:</p>
<blockquote>
<p><strong>Is it possible to locally disable a particular message?</strong> This may be done by adding “#pylint: disable=W0123,E4567” at the desired block level or at the end of the desired line of code</p>
</blockquote>
<p>所以消息需要在相同的块级别(这样第二行就可以工作了,这是相同的块/范围)。此外,文件还说:</p>
<blockquote>
<p><strong>Is there a way to disable a message for a particular module only?</strong> Yes, you can disable or enable (globally disabled) messages at the module level by adding the corresponding option in a comment at the top of the file:</p>
</blockquote>
<p>所以它不会说:“文件的第一行”;只要禁用消息在文件的顶部,就可以了。在</p>