⇨ MENU ⇨ METHODES ⇨ bytearray ( )
bytearray ( ).lower ( )
⇨ MENU ⇨ METHODES ⇨ bytearray ( )
bytearray ( ).lower ( )
DESCRIPTION.
Retourne un nouveau tableau d'octets avec toutes les lettres ASCII en minuscules.
SYNTAXE.
BYA_Texte = tableau.lower ( )
BYA_Texte = ⇨ variable qui recevra la nouvelle chaine [ optionnel ]
tableau ⇨ tableau d'octets [ OBLIGATOIRE ]
.lower ( ) ⇨ appel de la méthode [ OBLIGATOIRE ]
REMARQUES.
tableau doit être un objet de type bytearray ( ) valide. Bien que tableau soit du type bytearray ( ), un tableau d'octets muable, la méthode bytearray ( ).lower ( ) ne modifie pas l'objet appelant, mais crée et retourne un nouveau objet bytearray ( ) avec les modifications demandées.
EXEMPLES.
print ( bytearray ( b"bonjour le monde." ).lower ( ) ) retourne bytearray(b'bonjour le monde.')
print ( bytearray ( b"BONJOUR LE MONDE." ).lower ( ) ) retourne bytearray(b'bonjour le monde.')
print ( bytearray ( b"pomme. Orange. FRAISE." ).lower ( ) ) retourne bytearray(b'pomme. orange. fraise.')
BYA_Titre = bytearray ( "Mon Python à moi" , "utf-8" )
print ( BYA_Titre.lower ( ) ) retourne bytearray(b'mon python \xc3\xa0 moi')
BYA_Devise = bytearray ( b"JE ME SOUVIENS ..." )
BYA_Correction = BYA_Devise.lower ( )
print ( BYA_Devise ) retourne bytearray(b'JE ME SOUVIENS ...')
print ( BYA_Correction ) retourne bytearray(b'je me souviens ...')
Votre aide est précieuse pour améliorer ce site, alors n'hésitez pas à faire part de
Dans la LOGITHEQUE de MON PYTHON PAS A PAS
vous trouvez des suggestions de projets simples et classiques pour
ooo
TESTER - DÉCOUVRIR - PRATIQUER - APPROFONDIR - EXPLORER
ooo
la programmation récréative avec le langage PYTHON 3
avec un exemple de résolution à télécharger pour vous inspirer.