python用函数怎么判断大小写


当前第2页 返回上一页

1

2

3

4

5

6

7

8

>>> str_1.islower()

False

>>> str_2.islower()

False

>>> str_3.islower()

False

>>> str_4.islower()

True

istitle()判断首字母是否大写, 其余的是否小写

1

2

3

4

5

6

7

8

>>> str_1.istitle()

False

>>> str_2.istitle()

False

>>> str_3.istitle()

True

>>> str_4.istitle()

False

更多Python相关技术文章,请访问Python教程栏目进行学习!

以上就是python用函数怎么判断大小写的详细内容,更多文章请关注木庄网络博客!!

返回前面的内容

相关阅读 >>

ubuntu能卸载Python

Python实现从序列中移除重复项且保持元素间顺序不变

Python中x[::]什么意思

Python注释用什么符号

Python打不开.py文件怎么办

Python中input函数的用法是什么?

flask-migrate扩展的用法介绍(附代码)

Python字符串中的换行符和制表符介绍

Python怎么下载easygui

Python string、 bytes、 bytearray类型详解

更多相关阅读请进入《Python》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...