python string模块
2016-02-26 20:38
686 查看
string.
ascii_lowercase
='abcdefghijklmnopqrstuvwxyz'
string.
ascii_uppercase
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
string.
ascii_letters
='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
string.
digits
='0123456789'
string.
hexdigits
='0123456789abcdefABCDEF'
string.
octdigits
='01234567'
string.
punctuation
标点符号 !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
string.whitespace
空白符 space,tab,换行等
string.
printable
可打印字符,以上所有集合
相关文章推荐
- [Leetcode]@python 100. Same Tree
- [Leetcode]@python 99. Recover Binary Search Tree
- [Leetcode]@python 98. Validate Binary Search Tree
- [Leetcode]@python 97. Interleaving String
- [Leetcode]@python 96. Unique Binary Search Trees
- Python2.7 urlparse学习
- python 二叉树
- python pip安装使用
- 怎么写python字符串截取
- python——strip,lstrip和rstrip
- Python学习笔记 - 9.元组(Tuple)
- python random模块
- Python作为移动客户端后台服务器
- mysql的python API
- Python中正则表达式的一些匹配规则
- 利用Python进行文章特征提取(一)
- python mysql
- Python语言特性
- python多线程编程以及join,setDaemon,线程锁的用法
- 廖雪峰python教程