1、python向数据库插入中文乱码问题直接手动insert into 中文 不乱码,但是用程序跑起来就乱码。conn =MySQLdb.connect(host="127.0.0.1",user="nimei",passwd="nimei",db="nimei",charset="utf8")加入... Read More
posted @ 2015-11-04 14:24 welkinok Views(752) Comments(0) Diggs(0) Edit
最近了解了一下django,数据库选用了mysql, 在连接数据库的过程中,遇到一点小问题,在这里记录一下,希望能够对遇到同样的问题的朋友有所帮助,少走一些弯路。关于django,想在这里也额外说一句。django是很优秀的基于python的web开发框架,对于有python基础的后台程序员,如果有... Read More
posted @ 2015-11-04 11:15 welkinok Views(1497) Comments(0) Diggs(0) Edit
一、安装easy_install参考文章:http://www.cnblogs.com/huangjacky/archive/2012/03/28/2421866.html安装wget https://bootstrap.pypa.io/ez_setup.py -O - | python 安装到了... Read More
posted @ 2015-11-03 17:19 welkinok Views(157) Comments(0) Diggs(0) Edit
tar xvf Python-2.7.5.tar.bz2 mkdir /usr/local/python27 ls cd Python-2.7.5 ./configure --prefix=/usr/local/python27 make make install mv /... Read More
posted @ 2015-11-03 16:15 welkinok Views(209) Comments(0) Diggs(0) Edit
一、解压安装tar zxvf nginx-1.9.6.tar.gz cd nginx-1.9.6./configure --with-http_stub_status_module --with-http_ssl_modulemakemake install二、启动/usr/local/nginx... Read More
posted @ 2015-11-03 15:23 welkinok Views(4585) Comments(0) Diggs(0) Edit