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