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")
from pprint import pprint
pprint(vars(your_object))
now = datetime.now()
current_time = now.strftime("%d-%m-%Y %H:%M:%S.%f")
No Comments