[英]Can the Python interpreter welcome message be suppressed?
Instead of: 代替:
$ 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. >>>
I'd like, for example: 我想,例如:
$ python --quiet
>>>
You can try this: 你可以试试这个:
$ python -ic ""
>>>
I have a startup file, so this works for me: 我有一个启动文件,所以这对我有用:
python -i "$PYTHONSTARTUP"
Although Python 3 now has a -q
flag: 虽然Python 3现在有一个
-q
标志:
python3 -q
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.