La fonction Python int()
1. Description de la fonction int() Python La fonction int() Python convertit n'importe quelle chaîne, objet de type octet ou nombre en un nombre entier. 2. Syntaxe & Exemples 2.1 Syntaxe
|
1 |
int(valeur, base [optionnel]) |
Paramètres int() La méthode int() prend deux paramètres : valeur: toute chaîne numérique, objet de type octet ou nombre base [facultatif]: le système de…