python:maths:start
Table des matières
Maths
Convertir une chaîne de caractères en float sous python
En testant si c'est possible
try: float(s) print('True') except: print('False')
donne
3.1415 True
python/maths/start.txt · Dernière modification : de 127.0.0.1
