服务器乱码编码

# python3.6
# coding=utf-8

words = "\u9a8c\u8bc1\u7801\u68c0\u67e5\u6210\u529f"
print(words, type(words))
# 验证码检查成功 <class 'str'>

words = b"\u9a8c\u8bc1\u7801\u68c0\u67e5\u6210\u529f"
print(words, type(words))
# b'\\u9a8c\\u8bc1\\u7801\\u68c0\\u67e5\\u6210\\u529f' <class 'bytes'>

posted @ 2019-04-13 15:06  Adamanter  阅读(424)  评论(0编辑  收藏  举报