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 ""
首字母大写name = str(‘xiongchaoyuan‘)print(name.capitalize())Xiongchaoyuan
时间: 2024-11-25 14:39:21