Python 字符串扩展
项目描述
此软件包包含许多用于操作字符串的帮助函数。
请在此处阅读出色的文档 (链接)
快速入门
安装
pip install pystrext
用法
>>> import pystrext as strext >>> h,m,s = strext.extracts('elapse time : 5h 7m 36s','(\d+)h (\d+)m (\d+)s',['0']*3) >>> h,m,s ('5', '7', '36') >>> print strext.no_one_many(0,"No item","One item","%(n)s items") No item >>> print strext.no_one_many(1,"No item","One item","%(n)s items") One item >>> print strext.no_one_many(36,"No item","One item","%(n)s items") 36 items
… 更多功能: (链接)
新闻
0.1.7 (2015-01-02)
添加 CHANGES.rst 文件
在文档中添加 Quickstat
0.1.6 (2015-01-01)
添加 docstrings
添加 sphinx 文档
0.1.1 (2014-12-30)
首次提交
无文档
项目详情
关闭
pystrext-0.1.7.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 742ef570a53029d2555ae86df25c86ec89fb2de0483a59576b67d6c40c9c6f00 |
|
MD5 | 517183c99512ffbef58188ad837164eb |
|
BLAKE2b-256 | ab5bee019d0fcfd0a5b43a4b40e70540b40c0090193f658446342ada4f45dc6a |