zl程序教程

您现在的位置是:首页 >  后端

当前栏目

python之函数用法islower()

Python 函数 用法
2023-09-11 14:17:15 时间
# -*- coding: utf-8 -*-
#python 27
#xiaodeng
#python之函数用法islower()
#http://www.runoob.com/python/att-string-islower.html


#islower()
#说明:检测字符串是否都由小写字母组成
str = "THIS is string example....wow!!!"
print str.islower()#False

str = "this is string example....wow!!!"
print str.islower()#True