Python文本处理(一)

Python文本处理(1)每次处理一个字符解决方法:创建列表 print one tWo thrEe.capitalize()print one tWo

Python文本处理(1)

每次处理一个字符

解决方法:

创建列表 

print 'one tWo thrEe'.capitalize()print 'one tWo thrEe'.title()结果One two threeOne Two Three