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

请教下, Python2.7 如何去除特殊的空白字符?例如<0x05>、<0x10>、<0x03>、<0x02>

  •  
  •   superbai · Sep 2, 2018 · 1960 views
    This topic created in 2903 days ago, the information mentioned may be changed or developed.
    Python2.7,AES 解密,解密出来的值后面总是有空白字符,使用 strip 的话,不加参数没有用,如果加参数的话,上网搜索了下,这种特殊的空白字符有几十种,一个一个过滤也不太现实,大家有遇到类似的问题么,求教如何解决
    2 replies    2018-09-02 18:46:30 +08:00
    skinny
        1
    skinny  
       Sep 2, 2018   ❤️ 1
    CBC ?你没去除 Padding 吧?
    superbai
        2
    superbai  
    OP
       Sep 2, 2018
    @skinny 看了下,果然是的...加上之后就一切正常了~非常感谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2876 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:34 · PVG 17:34 · LAX 02:34 · JFK 05:34
    ♥ Do have faith in what you're doing.