在ubuntu中使用ipython

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

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

安装办法:

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

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

gyf@ubuntu:~/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]:
posted @ 2020-02-19 11:52  frozenheart  阅读(406)  评论(0编辑  收藏  举报