python之函数用法islower()

# -*- 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

 

posted @ 2015-11-07 22:42  Xiao|Deng  阅读(1648)  评论(0编辑  收藏  举报