代替:
$ 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
>>>
Run Code Online (Sandbox Code Playgroud)
Python 3 现在有一个-q
标志:
python3 -q
Run Code Online (Sandbox Code Playgroud)
对于 Python 2,我有一个启动文件,所以这对我有用:
python2 -i "$PYTHONSTARTUP"
Run Code Online (Sandbox Code Playgroud)