# Some strings for ctype-style character classification c风格字符串 whitespace = ' \t\n\r\v\f' #空白字符 \t 制表符 \n换行 lowercase = 'abcdefghijklmnopqrstuvwxyz' uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' letters = lowercase + uppercase ascii_lowercase = lowercase ascii_uppercase = uppercase ascii_letters = ascii_lowercase + ascii_uppercase digits = '0123456789' #十进制数字 hexdigits = digits + 'abcdef' + 'ABCDEF' #十六进制数 octdigits = '01234567' #八进制 punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~""" #标点符号 printable = digits + letters + punctuation + whitespace #可打印字符串