Appendix 语言基础
环境: 下载anaconda2 在ubuntu15.04系统下
1. 运行方式
(1) python hello.py
(2) ipython: run hello.py
2. 获取帮助方式
(1) dir(obj) 一般用于获取obj member和method
(2) help(a) = ?a(ipython)
a 的属性详细说明
help(a.method)可以查看具体method的使用方法.
3. ipython下edit和run以及!
edit打开默认edit进行编辑: edit hello.py = vim hello.py
run hello.py = !python hello.py
具体可以查magic
4. ipython下method的调用帮助
obj.<tab> 可以现实对象的使用方法