python AttributeError: module 'string' has no attribute 'uppercase'

Traceback (most recent call last):
  File "Test1.py", line 8, in <module>
    upperletters = string.uppercase

AttributeError: module 'string' has no attribute 'uppercase'



就用这个吧python3.0都能用

>>> string.ascii_lowercase
'abcdefghijklmnopqrstuvwxyz'