Horloge 100% automatique (module time)

J’ai crée une petite horloge automatique, seul problème je n’efface pas l’ancienne heure pour afficher la nouvelle,  je saute des lignes pour afficher la nouvelle ce qui pose des problèmes cependant l’horloge reste intéressante. Je vous laisse tester.


import time
import os

while True:
time.sleep(0.8)
current_time_year = time.localtime (time.time()).tm_year
current_time_mon = time.localtime (time.time()).tm_mon
current_time_day = time.localtime (time.time()).tm_mday
current_time_hour = time.localtime (time.time()).tm_hour
current_time_min = time.localtime (time.time()).tm_min
current_time_sec = time.localtime (time.time()).tm_sec
print (current_time_day,"/",current_time_mon,"/",current_time_year)
print (current_time_hour,":",current_time_min," ",current_time_sec)
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")
print (" ")