在ubuntu中使用ipython

python自带的shell实在是不怎么好用

大家可以用一下ipython这个软件,它可以自动缩进,补齐,语法高亮等

安装办法:

sudo apt install ipython #这个是安装2.7的python

sudo apt  install ipython3 #这个是安装3.6.9的python(应该是ipython能提供的最新的版本了,虽然现在3.7都已经有了)

:~/Downloads$ ipython3
Python 3.6.9 (default, Nov  7 2019, 10:44:02)
Type "copyright", "credits" or "license" for more information.
IPython 5.5.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython‘s features.
%quickref -> Quick reference.
help      -> Python‘s own help system.
object?   -> Details about ‘object‘, use ‘object??‘ for extra details.
In [1]: print("Hello ,Ipython")
Hello ,Ipython
In [2]: