首页 > 编程语言 > 详细

python之函数用法isupper()

时间:2015-11-07 23:16:20      阅读:205      评论:0      收藏:0      [点我收藏+]
# -*- coding: utf-8 -*-
#python 27
#xiaodeng
#python之函数用法isupper()
#http://www.runoob.com/python/att-string-isupper.html


#isupper()
#说明:检测字符串中所有的字母是否都为大写
‘‘‘
isupper(...)
    S.isupper() -> bool
    
    Return True if all cased characters in S are uppercase and there is
    at least one cased character in S, False otherwise.
‘‘‘


str = "THIS is string example....wow!!!"
print str.isupper()#False

str = "NAME"
print str.isupper()#True

 

python之函数用法isupper()

原文:http://www.cnblogs.com/dengyg200891/p/4946277.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!