#Python中检测字符串是否首字母大写istitle()

33.(str).istitle()
检测字符串是否首字母大写。
如果字符串是首字母大写的返回True,否则返回False

print("Sunck Is".istitle())		 #(输出)True
print("sunck is".istitle()) 	 #(输出)False

猜你喜欢

转载自blog.csdn.net/weixin_43097301/article/details/82962796
今日推荐