파이썬 istitle () 메소드
기술
파이썬 istitle () 모든 단어를 검색하는 방법은 문자열을 소문자로 대문자 첫 글자와 다른 문자입니다 철자.
문법
istitle () 메서드 구문 :
str.istitle()
매개 변수
- 없음.
반환 값
모든 단어의 첫 글자를 철자 문자열, 그렇지 않으면 거짓 대문자, 소문자와 참 다른 반환 인 경우.
예
다음 예 istitle () 방법의 예를 나타낸다 :
#!/usr/bin/python str = "This Is String Example...Wow!!!"; print str.istitle(); str = "This is string example....wow!!!"; print str.istitle();
다음, 상기 출력 결과의 예 :
True False