推荐学习书目
› 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
decken
V2EX  ›  Python

python doctest 的奇怪问题,麻烦大家帮忙看看

  •  
  •   decken ·
    DecKen · Nov 1, 2014 · 2791 views
    This topic created in 4353 days ago, the information mentioned may be changed or developed.
    大家能不能帮忙看看. 试了全部不加u也不行
    2 replies  •  2014-11-01 18:49:25 +08:00
    decken
        1
    decken  
    OP
       Nov 1, 2014
    @binux 能帮忙看一下吗?
    binux
        2
    binux  
       Nov 1, 2014   ❤️ 1
    我只能说,repr(u"你好") 就是 u'\u4f60\u597d' 这么表示的
    如果doctest是怎么处理的,那就只有这样了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2470 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:52 · PVG 22:52 · LAX 07:52 · JFK 10:52
    ♥ Do have faith in what you're doing.