islower
概要Description
签名
s.islower(): bool
功能
判断并返回 这个字符串中的字母 是不是 都是 小写的
支持 Unicode 中 其它小写相关的字符
广告
案例Examples
正常情况
都是小写的
1 2 =s = 'zzax'result = s.islower()True
有一个不是小写的
1 2 =s = 'Port'result = s.islower()False
其它情况
混杂其它字符无所谓,但至少得有一个字母
1 =''.islower()False
1 =' zzax '.islower()True
1 ='文档 doc'.islower()True
1 ='文档'.islower()False
支持 Unicode 中 其它小写相关的字符
1 ='à'.islower()True
广告