def capitalize(self): # real signature unknown; restored from __doc__
"""
S.capitalize() -> str

Return a capitalized version of S, i.e. make the first character
have upper case and the rest lower case.
"""
return ""


capitalize()函数的作用是将字符的首字符upper后返回,字符本身不变。



1 def center(self, width, fillchar=None): # real signature unknown; restored from __doc__
2     """
3     S.center(width[, fillchar]) -> str
4     
5     Return S centered in a string of length width. Padding is
6     done using the specified fill character (default is a space)
7     """
8     return center
center

相关文章: