标签:hello continue import letters
>>> import string >>> for n in dir(string): ... if n.startswith(‘_‘): ... continue ... v = getattr(string, n) ... if isinstance(v, basestring): ... print ‘%s = %s‘ % (n, repr(v)) ... print ... 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 ‘
标签:hello continue import letters
原文地址:http://lifayi.blog.51cto.com/1382170/1557951