python upper(),lower(),title(),capitalize()
来源:互联网 发布:涨乐财富通mac版 编辑:程序博客网 时间:2024/06/06 16:47
1. str.upper():转换为大写
2. str.lower():转换为小写
3. str.title():每一个单词的首字母大写
4. str.capitalize():字符串首字符大写
Example:
abc = " apple is not APPLE!"abcd = "apple is not APPLE!"print(abc.upper())print(abc.lower())print(abc.title())print(abc.capitalize())print(abcd.capitalize())APPLE IS NOT APPLE!
apple is not apple!
Apple Is Not Apple!
apple is not apple!
Apple is not apple!
阅读全文
0 0
- python upper(),lower(),title(),capitalize()
- python字符串title(),upper(),lower(),capitalize(),swapcase()
- Pandas 文本数据方法 capitalize( ) lower( ) upper( )
- Python 中的lower()、upper()函数和str\chr
- python 列表生成式、lower()和upper()的使用
- Oracle lower(Upper)函数
- oracle upper lower
- oracle-lower(),upper()函数
- lower(upper)_bound
- lower-bound和upper-bound
- Angularのupperとlower
- Python字符串capitalize()方法
- Python对字母字符(串)中大小写转换函数--upper() 和 lower()
- Python对字母字符(串)中大小写转换函数--upper() 和 lower()
- python中改变字母大小写的函数upper()和lower()
- Convert Character between Upper and Lower
- Scala类型 11: Upper Bounds & Lower Bounds
- Oracle常用函数 REPLACE() 、 LOWER() 、 UPPER() 篇
- 详解stacking过程
- LINUX驱动之SPI子系统之三基本的调用流程
- Shader编程学习笔记(九)—— Cg语言入门1
- hadoop
- JavaScript数组的应用——冒泡排序
- python upper(),lower(),title(),capitalize()
- OkHttp3.0源码解析---拦截器
- Java设计模式12——责任链模式
- go语言中函数作为值、类型
- Java详解WebService技术
- iOS 09-GCD多线程基础
- 一个讲Bagging和Boosting很清晰的blog,转载和收藏
- js对象中什么是可枚举性(enumerable)?
- @RequestMapping 用法详解之地址映射(转)