Skip to main content

Python

Afficher un objet au complet :

from pprint import pprint
pprint(vars(your_object))

Afficher date + heure + milisecondes : 

now = datetime.now()
current_time = now.strftime("%d-%m-%Y %H:%M:%S.%f")