【python】ipython与python的区别 (2014-06-05 12:27:40) 转载▼ 【python】ipython与python的区别 转载▼ 分类: Python http://mba.shengwushibie.com/itbook/BookChapter.asp?id=87 ...
分类:
编程语言 时间:
2016-06-17 22:31:28
阅读次数:
205
本脚本主要针对python2.6升级至python2.10,并且解决了升级后不能使用yum的问题。添加了ipython功能##########################!/bin/bashpath="/home/tools"if[!-d$path];thenmkdir$pathelserm-rf$path&&mkdir$pathficd$pathyum-yinstallautomakegccgcc-c++readline-de..
分类:
编程语言 时间:
2016-06-15 12:51:53
阅读次数:
355
1、下载Python2.7.11https://www.python.org/downloads/release/python-2711/解决一个依赖关系yuminstallreadline-devel解压、安装tarxvfPython-2.7.11.tar.xzcdPython-2.7.11./configure--prefix=/usr/local/python27make&&makeinstall2、下载ipythonhttps://pypi.pyt..
分类:
编程语言 时间:
2016-06-13 15:41:30
阅读次数:
551
1、Python依赖readline-devel,先yum-yinstallreadline-devel2、下载:python-2.7.6.tar.gz和ipython-1.2.1.tar.gzhttps://www.python.org/downloads/release/python-2711/https://pypi.python.org/pypi/ipython/4.2.03、安装python(不建议更改系统自带的,安装到其他位置再做软..
分类:
编程语言 时间:
2016-06-10 23:20:08
阅读次数:
206
python连接mysql的connector有很多,我们选择MySQLdb让python支持MySQLdb模块#pip2.7installMySQL-python查看python2.7可使用的模块是否存在MySQLdb#ipython
WARNING:IPythonHistoryrequiresSQLite,yourhistorywillnotbesaved
Python2.7.11(default,Mar102016,09:45:30)
Type"c..
分类:
数据库 时间:
2016-06-05 01:14:58
阅读次数:
232
python连接mysql的connector有很多,我们选择MySQLdb让python支持MySQLdb模块#pip2.7installMySQL-python查看python2.7可使用的模块是否存在MySQLdb#ipython
WARNING:IPythonHistoryrequiresSQLite,yourhistorywillnotbesaved
Python2.7.11(default,Mar102016,09:45:30)
Type"c..
分类:
数据库 时间:
2016-06-05 01:13:43
阅读次数:
294
ipython是一个python的交互式shell,比默认的pythonshell好用得多,支持变量自动补全,自动缩进,支持bashshell命令,内置了许多很有用的功能和函数。这个交互工具需要我们自行安装:yuminstallpython-pip//安装pip工具
pipinstallipython==1.2.1//使用pip安装ipython工具在使..
分类:
编程语言 时间:
2016-06-03 23:09:33
阅读次数:
405
1. First to install pip 2. Install iPython by pip Refer Link: ...
分类:
编程语言 时间:
2016-06-02 13:34:34
阅读次数:
136
如果提示nothing to do,安装epel扩展源。 编译后生成扩展名为pyc文件。 import py_compile py_compile.compile('hello.py') 经过优化的源码文件,扩展名.pyo python -O -m py_compile hello.py ...
分类:
编程语言 时间:
2016-05-29 21:17:39
阅读次数:
340
以下内容在ipython下面操作 四则运算 input() 和raw_input() ...
分类:
编程语言 时间:
2016-05-29 21:12:24
阅读次数:
172