istitle() 方法是检查不可大小字母的字符串中的所有基于大小写字符是否可大写,所有其他基于大小写字符都是小写。
	
语法
		以下为 istitle() 方法的语法:
	
str.istitle()
参数
- 
			NA 
返回值
如果字符串是标题字符串,并且至少有一个字符,此方法返回 true,例如:大写字符可能只能跟着不可大小字符和小写字符只转换一次。否则返回false。
示例
		下面的示例说明 istitle() 方法的使用。
	
#!/usr/bin/python3 str = "This Is String Example...Wow!!!" print (str.istitle()) str = "This is string example....wow!!!" print (str.istitle())
		当我们运行上面的程序,会产生以下结果 -
	
True False
						上一篇:
								Python3数字
												下一篇:
								Python3字符串
												
						
						
					
					
					