它返回一个字符串的副本,只有第一个字符大写。
str.capitalize()
NA
串
#!/usr/bin/python str = "this is string example....wow!!!"; print "str.capitalize() : ", str.capitalize()
str.capitalize() : This is string example....wow!!!