- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 解决Pyh中编写html出现乱码问题
在使用 Pyh模块编写html的时候,出现乱码,经过搜索html加入 之后就不会出现乱码了。 看了下phy代码发现 charset并没有写入到xml中 doctype = '\n' charset = '\n' 在下面函数中加入def printOut(self,file=''): if file: f = open(file, 'w') else: f = std
2016-06-14 15:59:58
439
原创 文章标题
对logging封装了后发现 loggers.warning(“中文”) 调用后 出现UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe4 in position 0: ordinal not logging.warning(“中文”) 不会出错, 最后 加上了下面三句 import sys reload(sys) sys.
2016-06-01 17:28:51
239
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人