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

python 截取字符串固定长度怎么实现

  •  
  •   ciba1990 · Jul 31, 2015 · 5241 views
    This topic created in 4127 days ago, the information mentioned may be changed or developed.

    例如截取字符串的前20个字节

    scream7
    scream7
    Jul 31, 2015❤️1
    2
    s[:20] ???
    xbonline
    xbonline
    Jul 31, 2015❤️1
    3
    这类问题为啥不RTFM?
    tinyproxy
    tinyproxy
    Aug 1, 2015❤️1
    4
    连教程都不看完我也是醉了。。。
    leavic
    leavic
    Aug 1, 2015 via iPhone❤️1
    5
    你真的学过python吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1126 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:02 · PVG 02:02 · LAX 10:02 · JFK 13:02
    ♥ Do have faith in what you're doing.