小白教程
所有教程
关于
Search
172.69.59.106
172.69.59.106
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Python3 string istitle”的源代码
本页内容
上一节:
Python3_string_isspace
下一节:
Python3_string_isupper
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:istitle()}}[[Category:python3 string|16]] = Python3 istitle()方法 = [[python3 string|Python3 字符串]] == 描述 == istitle() 方法检测字符串中所有的单词拼写首字母是否为大写,且其他字母为小写。 == 语法 == istitle()方法语法: <sample title="" desc="" lang="python" hererun="1"> str.istitle() </sample> == 参数 == * 无。 == 返回值 == 如果字符串中所有的单词拼写首字母是否为大写,且其他字母为小写则返回 True,否则返回 False. 以下实例展示了istitle()方法的实例: <sample title="" desc="" lang="python" hererun="1"> #!/usr/bin/python3 str = "This Is String Example...Wow!!!" print (str.istitle()) str = "This is string example....wow!!!" print (str.istitle()) </sample> 以上实例输出结果如下: <sample title="" desc="" lang="python" hererun="1"> True False </sample> [[python3 string|Python3 字符串]]
返回至“
Python3 string istitle
”。
上一节:
Python3_string_isspace
下一节:
Python3_string_isupper