2018-07-06-Python|2018-07-06-Python title()方法
Python title() 方法返回"标题化"的字符串,就是说所有单词都是以大写开始,其余字母均为小写(见 istitle())。
title()方法语法:
str.title();以下实例展示了 title()函数的使用方法:
str = "this is string example....WWW!!!"以上代码的打印结果是:
print(str.title())
【2018-07-06-Python|2018-07-06-Python title()方法】This Is String Example....Www!!!
推荐阅读
- 对抗抑郁最好的方法
- 怎样用黑谜速冻膜去黑头,|怎样用黑谜速冻膜去黑头, 最有效的去黑头的方法看这!
- 移动端h5调试方法
- 唱歌教学(导致嗓音损坏的几个常见的错误唱歌方法!)
- 拆书方法训练营
- 数组常用方法一
- 这份史上最经典的3大学习方法,清华北大学霸都在用!
- 迅捷流程图制作软件的使用方法!
- VueX--VUE核心插件
- 15个从现实焦虑中恢复精神的方法!