一、python开发环境部署
1、linux开发环境
下载地址https://www.python.org/downloads/source/
wget [https://www.python.org/ftp/python/2.7.12/Python-2.7.12rc1.tar.xz][2]tar –zxcv Python-2.7.3.tgzcd Python-2.7.3./configure --prefix=/usr/local/pythonnewmake && make installls /usr/local/pythonnew/ln –s /usr/pythonnew/bin/python
/bin/pythonnew 软连接直接使用pythonnew
setuptools工具 https://pypi.python.org/pypi/setuptools?#downloads
wget [https://pypi.python.org/packages/45/5e/79ca67a0d6f2f42bfdd9e467ef97398d6ad87ee2fa9c8cdf7caf3ddcab1e/setuptools-23.0.0.tar.gz#md5=100a90664040f8ff232fbac02a4c5652][4]tar -zxvf setuptools-0.6c11.tar.gzcd setuptoolspythonnew setup.py buildpythonnew setup.py installls /usr/local/pythonnew/bin //看到easy_installls -s /usr/local/pythonnew/bin/easy_install /bin/easy_install.2.7.3
easy_install.2.7.3 django 安装第三方包
2、 wingide IDE
$ phthon
2.1 sys module
import sysdir(sys) sys下的函数、成员变量等help(sys)str(sys )str(sys.path) 以语言方式显示type(sys)print sys.platform 平台信息print sys.pathdir(a) a的所有函数调用a.real 真值
2.2 os module
import osdir(os)print os.getcwd() 获取当前路径
5669

被折叠的 条评论
为什么被折叠?



