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

来源:互联网 发布:2016乒超联赛网络 编辑:程序博客网 时间:2024/05/29 02:55
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'

阅读全文
0 0
原创粉丝点击