首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
推荐学习书目
›
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
V2EX
›
Python
python 截取字符串固定长度怎么实现
ciba1990
·
2015 年 7 月 31 日
· 4691 次点击
这是一个创建于 3840 天前的主题,其中的信息可能已经有所发展或是发生改变。
例如截取字符串的前20个字节
字符串
截取
字节
5 条回复
1
2a
2015 年 7 月 31 日
1
http://www.jb51.net/article/47956.htm
2
scream7
PRO
2015 年 7 月 31 日
1
s[:20] ???
3
xbonline
2015 年 7 月 31 日
1
这类问题为啥不RTFM?
4
tinyproxy
2015 年 8 月 1 日
1
连教程都不看完我也是醉了。。。
5
leavic
2015 年 8 月 1 日 via iPhone
1
你真的学过python吗?
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
1914 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 00:26
·
PVG 08:26
·
LAX 16:26
·
JFK 19:26
♥ Do have faith in what you're doing.
❯