主页
Python
Python String istitle() 方法
demo_ref_string_istitle2
运行 ❯
×
更改方向
保存代码
更改主题
a = "HELLO, AND WELCOME TO MY WORLD" b = "Hello" c = "22 Names" d = "This Is %'!?" print(a.istitle()) print(b.istitle()) print(c.istitle()) print(d.istitle())
False
True
True
True