增强版的 Python 解释器 Ipython
安装 Ipython
shell > pip3 install ipython
启动和退出 Ipython
shell > ipython
Python 3.6.5 (default, Feb 15 2019, 11:04:42)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.2.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]:exit
执行 shell 命令
In [2]: !ls
aclocal.m4 Doc libpython3.so Objects python
build Grammar LICENSE Parser Python
config.guess Include Mac PC python-config