推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
holinhot
V2EX  ›  Python

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

  •  
  •   holinhot · Apr 27, 2015 · 8117 views
    This topic created in 4207 days ago, the information mentioned may be changed or developed.

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

    16 replies  •  2015-04-28 00:49:57 +08:00
    bestsanmao
    bestsanmao
    Apr 27, 2015
    1
    unicode
    ynyounuo
    ynyounuo
    Apr 27, 2015❤️2
    2
    百度一下,你就知道
    Unicode Hex
    holinhot
    holinhot
    OP
    Apr 27, 2015
    3
    我把他转换回来了

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

    In [10]:
    zkd8907
    zkd8907
    Apr 27, 2015
    5
    clino
    clino
    Apr 27, 2015
    6
    >>> print '\u767e\u5ea6\u4e00\u4e0b\uff0c\u4f60\u5c31\u77e5\u9053'.decode("unicode_escape")
    百度一下,你就知道
    Him
    Him
    Apr 27, 2015❤️1
    7
    谜底就在谜面上
    zhangsan
    zhangsan
    Apr 27, 2015
    8
    \用来转义
    u表示后面的字符表示的是unicode
    DavidHu
    DavidHu
    Apr 27, 2015
    9
    百度一下,你就知道 2333333
    cruisehu
    cruisehu
    Apr 27, 2015
    10
    randyzhao
    randyzhao
    Apr 27, 2015
    11
    百度一下,你就知道
    答案就是解决办法 233
    clockwerk
    clockwerk
    Apr 27, 2015
    12
    还真的是百度一下,你就知道
    holinhot
    holinhot
    OP
    Apr 27, 2015
    13
    @nellace 必须是啊
    khan
    khan
    Apr 27, 2015
    14
    unicode 的 utf16?
    233
    233
    Apr 28, 2015
    15
    哈哈哈, 试了一下才看懂评论. 果然是百度一下,你就知道
    kzzhr
    kzzhr
    Apr 28, 2015 via Android
    16
    广告贴
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5138 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 01:45 · PVG 09:45 · LAX 17:45 · JFK 20:45
    ♥ Do have faith in what you're doing.