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

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简写

上一篇:c++ 大数模板 及例题


下一篇:python maketrans and translate