![](/img/trans.png)
[英]where does the welcome message of interactive python interpreter come from?
[英]Can the Python interpreter welcome message be suppressed?
代替:
$ 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 --quiet
>>>
你可以试试这个:
$ python -ic ""
>>>
我有一个启动文件,所以这对我有用:
python -i "$PYTHONSTARTUP"
虽然Python 3现在有一个-q
标志:
python3 -q
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.