Python笔记之——ipython
来源:互联网 发布:淘宝无法点击立即购买 编辑:程序博客网 时间:2024/05/16 08:23
1、ipython安装:
$apt-get install python-ipython
2、ipython是*nux下增强的python shell工具,支持TAB补全、集成部分linux命令如ls、cd,执行ipython直接运行:
root@ubuntu:~# ipythonPython 2.7.2+ (default, Oct 4 2011, 20:03:08) Type "copyright", "credits" or "license" for more information.IPython 0.10.2 -- An enhanced Interactive Python.? -> Introduction and overview of IPython's features.%quickref -> Quick reference.help -> Python's own help system.object? -> Details about 'object'. ?object also works, ?? prints more.In [1]: lsDesktop/ Downloads/NetBeansProjects/ Public/ Videos/Documents/ Music/Pictures/ Templates/In [2]: cd DDesktop/ Documents/ Downloads/ In [2]: cd Documents//root/DocumentsIn [3]: !ifconfigeth0 Link encap:Ethernet HWaddr 00:0c:29:d1:2d:f9 inet addr:192.168.1.104 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fed1:2df9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:34853 errors:0 dropped:0 overruns:0 frame:0 TX packets:21183 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:32258139 (32.2 MB) TX bytes:5295207 (5.2 MB) Interrupt:19 Base address:0x2000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1106 errors:0 dropped:0 overruns:0 frame:0 TX packets:1106 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:188776 (188.7 KB) TX bytes:188776 (188.7 KB)In [4]: %%Exit %debug %logstop %prun %runlog%Pprint %dhist %lsmagic %psearch %save%Quit %dirs %macro %psource %sc%alias %doctest_mode %magic %pushd %store%autocall %ed %p %pwd %sx%autoindent %edit %page %pycat %system_verbose%automagic %env %paste %quickref %time%bg %exit %pdb %quit %timeit%bookmark %hist %pdef %r %unalias%cd %history %pdoc %rehash %upgrade%clear %logoff %pfile %rehashx %who%color_info %logon %pinfo %rep %who_ls%colors %logstart %popd %reset %whos%cpaste %logstate %profile %run %xmodeIn [4]: import ppango pildriver posix pyatspipangocairo pilfile posixfile pyclbrpapyon pilfont posixpath pycurlparamiko pilprint pprint pydocparser pipes problem_report pydoc_datapcardext piston_mini_client profile pyexpatpdb pkg_resources pspersistence pygstpexpect pkgutil pstats pygtkpickle platform pty pyinotifypickleshare plistlib pwd pynotifypickletools popen2 pxssh pyparsingpilconvert poplib py_compile In [4]: import paramikoIn [5]: c = paramiko.SSHCparamiko.SSHClient paramiko.SSHConfig In [5]: c = paramiko.SSHClient()In [6]: c.c.__class__ c.__setattr__ c._transportc.__delattr__ c.__sizeof__ c.closec.__dict__ c.__str__ c.connectc.__doc__ c.__subclasshook__ c.exec_commandc.__format__ c.__weakref__ c.get_host_keysc.__getattribute__ c._agent c.get_transportc.__hash__ c._auth c.invoke_shellc.__init__ c._host_keys c.load_host_keysc.__module__ c._host_keys_filename c.load_system_host_keysc.__new__ c._log c.open_sftpc.__reduce__ c._log_channel c.save_host_keysc.__reduce_ex__ c._policy c.set_log_channelc.__repr__ c._system_host_keys c.set_missing_host_key_policy
- Python笔记之——ipython
- Python学习笔记1——IPython
- Python之IPython
- Python学习之IPython/IPython notebook篇
- Python之IPython开发实践
- 《利用Python进行数据分析》学习笔记系列——IPython
- python学习笔记:ipython,scipy,pandas,flask
- Python学习笔记(二)-- iPython notebook
- Python笔记-NumPy,SciPy,IPython,Matplotlib
- Python在云端编程之IPython notebook
- 安装Python交互式数据处理工具——IPython
- Python----ipython
- IPython 笔记
- 《python for data analysis》笔记一 -- ipython简介
- 【Python 笔记】Ipython中pdb调试器的使用
- Python学习笔记-编译安装Python3.6.1 + iPython
- 利用Python进行数据分析笔记-第三章-ipython
- Linux——安装ipython
- CSV格式文件解析
- Jetty7配置双向SSL
- 中国人能不哭吗 这差距太大了!
- SSLSession中的PacketBufferSize和ApplicationBufferSize
- C位运算
- Python笔记之——ipython
- oracle table
- 永远的用户登录
- Perl 学习笔记 --- 06
- windbg 和 vmware 单机调试步骤
- 公司内部培训的一些收获
- 编译器之Keil错误收集
- C位移操作符
- synchronized