摘要:
与Nginx+uwsgi+web.py配置类似 启动文件wsgi.py 其它 Django的settings.py中ALLOWED_HOSTS需要添加 可能遇到字符编码问题 import sysreload(sys)sys.setdefaultencoding('utf8') 阅读全文
摘要:
与Nginx+uwsgi+web.py配置类似 启动文件wsgi.py 其它 Django的settings.py中ALLOWED_HOSTS需要添加 可能遇到字符编码问题 import sysreload(sys)sys.setdefaultencoding('utf8') 阅读全文
摘要:
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 阅读全文
摘要:
以下内容仅试过在Python2.7下 sqlite 在windows10 下可以这样用 cursor.execute('insert into tb(a) values(:a)',{'a':u'A'}) cursor.execute('insert into tb(a) values(:a)',{' 阅读全文
摘要:
遇坑的同鞋可以留意一下 操作系统: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 阅读全文
摘要:
从DataTable获取一列转List DataTable dt = ... List<string> list = dt.AsEnumerable().Select(r => r.Field<string>("name")).ToList(); 从List取一个字段 string [] nameA 阅读全文
|