>>>import string
>>>string.capitalize('use modules')
显示出错。显示错误如下:
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'capitalize'
似乎在python 3.1中string模块中已没有此用法。请问该如何解决。谢谢!