Python解释器欢迎消息是否可以被抑制?

Python解释器欢迎消息是否可以被抑制?,python,Python,而不是: $ python Python 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 您可以尝试以下方法: $ python -ic "" >>>

而不是:

$ python Python 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 您可以尝试以下方法:

$ python -ic ""
>>> 

我有一个启动文件,所以这对我很有用:

python -i "$PYTHONSTARTUP"
虽然Python 3现在有一个
-q
标志:

python3 -q

仅供参考,看起来该选项可能在两年前添加到Python3+中。这很聪明。好主意。
python3 -q