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

相关文章:

  • 2021-10-27
  • 2021-10-24
  • 2021-07-18
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-10
  • 2021-06-30
  • 2021-12-13
  • 2021-12-13
  • 2022-12-23
  • 2021-08-08
相关资源
相似解决方案