Latest web development tutorials

Pythonのislowerは()メソッド

Python文字列 Python文字列


説明

Pythonの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

Python文字列 Python文字列