首页 > 编程语言 > 详细

python string类自带的常用字符串data简写

时间:2014-02-21 05:36:42      阅读:487      评论:0      收藏:0      [点我收藏+]
ascii_letters = ‘abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ‘

ascii_lowercase = ‘abcdefghijklmnopqrstuvwxyz‘

ascii_uppercase = ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ‘

digits = ‘0123456789‘

hexdigits = ‘0123456789abcdefABCDEF‘

letters = ‘abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ‘

lowercase = ‘abcdefghijklmnopqrstuvwxyz‘

octdigits = ‘01234567‘

printable = ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\‘()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c‘

punctuation = ‘!"#$%&\‘()*+,-./:;<=>?@[\\]^_`{|}~‘

uppercase = ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ‘

whitespace = ‘\t\n\x0b\x0c\r ‘


使用方式:string.ascii_letters

python string类自带的常用字符串data简写

原文:http://blog.csdn.net/youfuchen/article/details/19544825

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!