1. 程式人生 > >python AttributeError module 'string' has no attribute 'upp

python AttributeError module 'string' has no attribute 'upp

                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'