ipython

2017-01-13 19:21:43来源:CSDN作者:michael019人点击

ipython是一个 python 的交互式 shell,比默认的python shell 好用得多,支持变量自动补全,自动缩进,支持 bash shell 命令,内置了许多很有用的功能和函数。在ubuntu 下只要 sudo apt-get install ipython 就装好了,通过 ipython 启动。
michael@michael:~$ ipython
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
Type “copyright”, “credits” or “license” for more information.
IPython 1.2.1 – 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]: filter? 查看函数声明
Type: builtin_function_or_method
String Form:
Namespace: Python builtin
Docstring:
filter(function or None, sequence) -> list, tuple, or string
Return those items of sequence for which function(item) is true. If function is None, return the items that are true. If sequence is a tuple or string, return the same type, else return a list.

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台