python之函数用法isupper()
2015-11-07 22:47
711 查看
# -*- 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之函数用法islower()
- python之函数用法startswith()
- python之函数用法endswith()
- python之函数用法xrange()
- Python中的日志管理Logging模块
- Jenkins + python(requests)做接口自动化测试
- 数据挖掘 R VS Python
- python统计《悲惨世界》中出现次数最多的20个单词并绘制柱状图
- python socket模块学习
- python之函数用法globals()
- python之函数用法getattr()
- python 字符编码处理问题总结
- NumPy-快速处理数据--ndarray对象--数组的创建和存取
- python之函数用法__getitem__()
- Python编写微信打飞机小游戏(一)
- 在被坑的路上学会成长——python+Eclipse+pydev环境搭建
- python之函数用法__setattr__
- python IDE:PyCharm简介
- Python学习笔记(2)
- python 语法的基础-数据类型