![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
远处的一只猫
自有的生活态度
展开
-
flask安装
安装确保python 2.6/2.7已经安装:python -v安装easy_install:apt-get install python-setuptools安装virtualenveasy_install virtualenv apt-get install python-virtualenv创建一个工作目录,进入目录,创建:$ mkdir myproject $ cd myproject $原创 2016-06-21 10:41:35 · 753 阅读 · 0 评论 -
[未完待续]flask code tips
code监听ipapp.run() app.run(host='0.0.0.0')第1个只监听本机,第2个监听所有调试模式app.debug = True app.run()或app.run(debug=True)打开后,一旦修改python文件,会自动发布新修改。及时修改的内容和app.run在同一个文件内,也会及时变化。路由更改@app.route('/') def hello_world():原创 2016-06-21 11:01:19 · 288 阅读 · 0 评论 -
python通过PyGreSQL连接greenplum/postgresql
python 2.7安装PyGreSQL前安装前依赖:apt-get install python-dev apt-get install postgresql apt-get install postgresql-server-dev-all安装PyGreSQL:pip install PyGreSQL原创 2016-06-22 14:02:16 · 5816 阅读 · 0 评论