首页 > 编程语言 > 详细

Python 字符串内置方法学习

时间:2017-11-27 20:44:37      阅读:148      评论:0      收藏:0      [点我收藏+]
  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

Python 字符串内置方法学习

原文:http://www.cnblogs.com/jnkq/p/7905877.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!