python大小写转换
来源:互联网 发布:淘宝怎么看店家vip 编辑:程序博客网 时间:2024/05/22 02:23
将字符转换为大写
使用upper()函数可以将字符串中所有的字符转换为大写
>>>'python'.upper()'PYTHON'
将字符串的首字母转换为大写,其余为小写
>>>'python Is FUN'.capitalzie()\'Python is fun'
将字符串所有单词的首字母转换为大写
>>>'pyThon IS FUN'.title()'Python Is Fun'
将字母转换为小写
使用lower()函数将字符串中的所有字符转化为小写
>>>'PYTHON IS FUN'.lower()'python is fun'
判断字符串是大写还是小写
判断大写使用isupper()函数
>>>'python'.isupper()False
判断小写使用islower()函数
>>>'python'.islower()True
0 0
- python 字符串 大小写转换
- python 大小写转换
- 【python】 字符串转换大小写
- Python 大小写的转换
- python大小写转换
- python大小写转换
- Python -- 字符串大小写转换
- python 大小写转换函数
- python 字符串 大小写转换
- python大小写转换
- python大小写转换函数
- python大小写转换函数
- Python大小写转换
- Python-大小写转换
- python大小写转换函数备忘
- Python字符串的大小写转换
- 【Python-2.7】大小写转换函数
- Python进阶---python 中字符串大小写转换
- orcale 时间比较 两种方式
- web服务器与应用服务器
- CBLAS编译安装与使用
- notepad++中把自动的提示去掉
- 适配器模式在Android中的应用
- python大小写转换
- Android How to Check if the App is in Background
- Unity 解决 An asset is marked with HideFlags.DontSave but is included in the build 问题。
- 《iOS 9 by Tutorials》 全书翻译导航
- iOS代码混淆-基础篇
- undefined symbol rpl_malloc
- 【ztree系列】右键菜单、节点伸缩
- poj 2240 Arbitrage 【floyd】
- 为众人抱火者, 不可使他冻毙于风雪! 为自由开路者, 不可使他困顿于荆棘