Latest web development tutorials

Metodo Python islower ()

stringhe Python stringhe Python


descrizione

metodo sono Python islower () per rilevare la stringa è costituito da lettere minuscole.

grammatica

islower () metodo di sintassi:

str.islower()

parametri

  • Nessuno.

Valore di ritorno

Se la stringa contiene almeno uno dei caratteri alfanumerici, e tutti questi caratteri (case-sensitive) sono minuscole, restituisce True, altrimenti False

Esempi

L'esempio seguente mostra il metodo islower () esempio:

#!/usr/bin/python

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

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

Esempi dei risultati di output di cui sopra sono i seguenti:

False
True

stringhe Python stringhe Python