擅长:python、mysql、java
<p>源代码包含保护此消息打印的条件:</p>
<pre class="lang-py prettyprint-override"><code>if 'PYGAME_HIDE_SUPPORT_PROMPT' not in os.environ:
print('pygame %s' % ver)
print('Hello from the pygame community. https://www.pygame.org/contribute.html')
</code></pre>
<p>见<a href="https://github.com/pygame/pygame/commit/18a31449de93866b369893057f1e60330b53da95" rel="noreferrer">this commit</a></p>
<p>这是最近(2018年10月)添加的,到目前为止1.9.4在此之前发布。下一个版本>;1.9.4发布后,您只需使用<code>PYGAME_HIDE_SUPPORT_PROMPT= ./my_code.py</code>运行代码即可隐藏消息。</p>