Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 178 Bytes

关于Python编码处理.md

File metadata and controls

3 lines (2 loc) · 178 Bytes

\u字符串转对应unicode字符串,比如‘\u4e2d\u56fd’字符串,用‘\u4e2d\u56fd’.decode('unicode_escape'),若要继续转成utf-8则加.encode('utf-8')。