Python字符串capitalize()方法
来源:互联网 发布:查找html源码 编辑:程序博客网 时间:2024/06/18 18:28
Python字符串capitalize()
方法它返回字符串的副本,并只将其第一个字符大写。
语法
以下是capitalize()
方法的语法 -
str.capit
返回值
- 字符串
示例
#!/usr/bin/python3str = "this is string example....wow!!!"print ("str.capitalize() : ", str.capitalize())
当运行上面的
str.capitalize() : This is string example....wow!!!
从上面结果中可以看到,字符串this....
变成This....
阅读全文
0 0
- Python字符串capitalize()方法
- python字符串title(),upper(),lower(),capitalize(),swapcase()
- capitalize
- python upper(),lower(),title(),capitalize()
- Python:字符串的一些函数运算capitalize()、center()、count()
- Pandas 文本数据方法 capitalize( ) lower( ) upper( )
- Python 字符串方法详解
- Python 字符串方法
- Python 字符串方法详解
- Python 字符串方法详解
- Python 字符串方法详解
- Python 字符串方法详解
- Python 字符串方法详解
- Python 字符串方法详解
- Python 字符串方法详解
- Python 字符串方法详解
- python 判断字符串方法
- python字符串方法join
- sdnu1005
- 图像修补
- eos 项目不能部署到服务器
- 【STL】vector要点及使用
- JSP基础详解
- Python字符串capitalize()方法
- 数据库事务
- android 蓝牙sco开发
- 无责任共享 Coursera、Udacity 等课程视频【百度云】
- set集合练习
- PassNote隐私策略
- PAT乙级题1011.A+B和C
- java中常见的类、包、接口
- mysql事务和锁InnoDB