Tuesday, October 28, 2008

Python的String实用方法

x = ‘hello’

x.upper() 会将所有的小写字母转换成大写。

x.capitalize() 会将首字母转换成大写。

No comments: