Latest web development tutorials

파이썬 islower와 () 메소드

파이썬 문자열 파이썬 문자열


기술

문자열을 감지 할 수 있습니다 파이썬 islower와 () 메서드는 소문자로 구성되어 있습니다.

문법

islower와 () 메서드 구문 :

str.islower()

매개 변수

  • 없음.

반환 값

문자열이 적어도 영숫자 문자 중 하나, 이들 모두를 포함하는 경우 (대소 문자 구분) 문자가 소문자 true, 그렇지 않은 경우는 false 반환

다음의 예는 islower와 () 인스턴스 메서드를 보여줍니다

#!/usr/bin/python

str = "THIS is string example....wow!!!"; 
print str.islower();

str = "this is string example....wow!!!";
print str.islower();

다음, 상기 출력 결과의 예 :

False
True

파이썬 문자열 파이썬 문자열