googlez

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年8月17日

摘要: 与Nginx+uwsgi+web.py配置类似 启动文件wsgi.py 其它 Django的settings.py中ALLOWED_HOSTS需要添加 可能遇到字符编码问题 import sysreload(sys)sys.setdefaultencoding('utf8') 阅读全文
posted @ 2017-08-17 09:56 googlez 阅读(172) 评论(0) 推荐(0) 编辑

2017年7月4日

摘要: cd python源码目录/Modulesvi Setup.dist找到# Socket module helper for SSL support; you must comment out the other# socket line above, and possibly edit the S 阅读全文
posted @ 2017-07-04 19:13 googlez 阅读(4133) 评论(0) 推荐(0) 编辑

2017年6月12日

摘要: 以下内容仅试过在Python2.7下 sqlite 在windows10 下可以这样用 cursor.execute('insert into tb(a) values(:a)',{'a':u'A'}) cursor.execute('insert into tb(a) values(:a)',{' 阅读全文
posted @ 2017-06-12 23:22 googlez 阅读(206) 评论(0) 推荐(0) 编辑

2017年5月20日

摘要: 遇坑的同鞋可以留意一下 操作系统:Centos7 准备文件:Python-2.7.13.tgz下载地址:https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgznginx-1.12.0.tar.gz下载地址:http://nginx.org 阅读全文
posted @ 2017-05-20 22:50 googlez 阅读(379) 评论(0) 推荐(0) 编辑

2017年5月12日

摘要: 从DataTable获取一列转List DataTable dt = ... List<string> list = dt.AsEnumerable().Select(r => r.Field<string>("name")).ToList(); 从List取一个字段 string [] nameA 阅读全文
posted @ 2017-05-12 12:01 googlez 阅读(202) 评论(0) 推荐(0) 编辑