
Python
zzzz_123123
这个作者很懒,什么都没留下…
展开
-
python字符乱码问题
1. 有人说reload必须要有 import sysreload(sys)sys.setdefaultencoding('utf-8') 2.#!/usr/bin/env python# -*- mode: python; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8; -*-...原创 2018-12-22 18:34:18 · 692 阅读 · 0 评论 -
Python 'unicode_escape'
1.a=‘\u767e\u5ea6\u5728\u7ebf\u7f51\u7edc\u6280\u672f\uff08\u5317\u4eac\uff09\u6709\u9650\u516c\u53f8’>>> print unicode(a,'utf-8')\u767e\u5ea6\u5728\u7ebf\u7f51\u7edc\u6280\u672f\uff08\u5...原创 2018-12-23 20:42:09 · 3934 阅读 · 0 评论