python问题汇总
2015-11-13 10:06
381 查看
解决中文编码
在程序开头加上,# coding: utf-8 or ### -*- codi -*- codi -*- coding: utf-8 -*-
安装psycopg2模块
psycopg2模块用来支持python连接PostgreSQL,安装代码如下:yum install postgresql-libs yum install python-setuptools yum -y install python-psycopg2
ubuntu下执行
sudo apt-get install python-psycopg2即可。
相关文章推荐
- python xlwt写excel格式控制 颜色、模式、编码、背景色
- 一行 Python 实现并行化 -- 日常多线程操作的新思路
- 每天一点python ——python面向对象
- Python开发入门与实战22-简单消息回复
- win8 sublime3 配置python 开发环境
- python---__getattr__\__setattr_重载'.'操作
- virtualenv -- python虚拟沙盒
- Python学习笔记(一)--- Matplotlib
- python 字典
- Python学习笔记(3)
- python搜索引擎之搜索系统的建立——根据关键字命中次数排分给出前若干个答案
- python开发之文件操作用法实例
- python编程开发之类型转换convert实例分析
- python编程开发之日期操作实例分析
- Python编程入门之Hello World的三种实现方式
- Python的Flask框架的简介和安装方法
- Python下的常用下载安装工具pip的安装方法
- 深入解析Python中的urllib2模块
- Python设置Socket代理及实现远程摄像头控制的例子
- 使用Python下载歌词并嵌入歌曲文件中的实现代码