随笔分类 -  python

摘要:安装 setuptools 出现 UnicodeDecodeError文件 Lib/mimetypes.py 中的 bug, 通过以下 patch 修复:Index: Lib/mimetypes.py===================================================================--- Lib/mimetypes.py (revision 85786)+++ Lib/mimetypes.py (working copy)@@ -27,6 +27,7 @@import sysimport posixpathimport urllib+from 阅读全文
posted @ 2014-01-21 14:45 ouuy 阅读(286) 评论(0) 推荐(0)
摘要:How to convert a QString to unicode object in python 2?I had this problem to solve, and I tried to find the safest way. This program illustrates the solutionfrom PyQt4 import QtCore, QtGui ... 阅读全文
posted @ 2014-01-09 09:45 ouuy 阅读(249) 评论(0) 推荐(0)