\u767e\u5ea6\u4e00\u4e0b\uff0c\u4f60\u5c31\u77e5\u9053 这个是什么编码

2015 年 4 月 27 日
 holinhot

我爬的百度title怎么得到的这个

7550 次点击
所在节点    Python
16 条回复
bestsanmao
2015 年 4 月 27 日
unicode
ynyounuo
2015 年 4 月 27 日
百度一下,你就知道
Unicode Hex
holinhot
2015 年 4 月 27 日
我把他转换回来了

@bestsanmao
@ynyounuo
chevalier
2015 年 4 月 27 日
In [9]: print u'\u767e\u5ea6\u4e00\u4e0b\uff0c\u4f60\u5c31\u77e5\u9053'
百度一下,你就知道

In [10]:
zkd8907
2015 年 4 月 27 日
clino
2015 年 4 月 27 日
>>> print '\u767e\u5ea6\u4e00\u4e0b\uff0c\u4f60\u5c31\u77e5\u9053'.decode("unicode_escape")
百度一下,你就知道
Him
2015 年 4 月 27 日
谜底就在谜面上
zhangsan
2015 年 4 月 27 日
\用来转义
u表示后面的字符表示的是unicode
DavidHu
2015 年 4 月 27 日
百度一下,你就知道 2333333
cruisehu
2015 年 4 月 27 日
randyzhao
2015 年 4 月 27 日
百度一下,你就知道
答案就是解决办法 233
clockwerk
2015 年 4 月 27 日
还真的是百度一下,你就知道
holinhot
2015 年 4 月 27 日
@nellace 必须是啊
khan
2015 年 4 月 27 日
unicode 的 utf16?
233
2015 年 4 月 28 日
哈哈哈, 试了一下才看懂评论. 果然是百度一下,你就知道
kzzhr
2015 年 4 月 28 日
广告贴

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/186701

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX