小白教程
所有教程
关于
Search
172.71.254.242
172.71.254.242
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Python3 string isupper”的源代码
本页内容
上一节:
Python3_string_istitle
下一节:
Python3_string_join
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:isupper()}}[[Category:python3 string|17]] = Python3 isupper()方法 = [[python3 string|Python3 字符串]] == 描述 == isupper() 方法检测字符串中所有的字母是否都为大写。 == 语法 == isupper()方法语法: <sample title="" desc="" lang="python" hererun="1"> str.isupper() </sample> == 参数 == * 无。 == 返回值 == 如果字符串中包含至少一个区分大小写的字符,并且所有这些(区分大小写的)字符都是大写,则返回 True,否则返回 False 以下实例展示了isupper()方法的实例: <sample title="" desc="" lang="python" hererun="1"> #!/usr/bin/python3 str = "THIS IS STRING EXAMPLE....WOW!!!" print (str.isupper()) str = "THIS is string example....wow!!!" print (str.isupper()) </sample> 以上实例输出结果如下: <sample title="" desc="" lang="python" hererun="1"> True False </sample> [[python3 string|Python3 字符串]]
返回至“
Python3 string isupper
”。
上一节:
Python3_string_istitle
下一节:
Python3_string_join