摘要: 遇到转码为utf-8在在屏显中的样式若为这样的: 'Ãëǰ' '·ÖÖÓÇ' str.encode('latin1', errors='replace').decode('gbk', errors='replace')遇到json文件写入文件后显示为utf-8字符编码形式时:json.dumps( 阅读全文
posted @ 2018-01-12 18:50 在路上-UP 阅读(139) 评论(0) 推荐(0)
摘要: #环境需求 Python2 1 #!/bin/python 2 # -*- coding: utf-8 -*- 3 4 5 import struct 6 import sys 7 import binascii 8 import pdb 9 10 try: 11 reload(sys) 12 sy 阅读全文
posted @ 2018-01-12 18:42 在路上-UP 阅读(2421) 评论(0) 推荐(0)