Explorar el Código

add \n in every log output

alpha
Ellis Huntingmoon hace 4 años
padre
commit
45a73272a2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      main.py

+ 1
- 1
main.py Ver fichero

56
 
56
 
57
     f = open(filepath, 'a')
57
     f = open(filepath, 'a')
58
     r_time = time.ctime(time.time())
58
     r_time = time.ctime(time.time())
59
-    f.write('record succesfully stopped at ' + str(r_time))
59
+    f.write('record succesfully stopped at ' + str(r_time)+ '\n')
60
     f.close()
60
     f.close()
61
 
61
 
62
 
62
 

Loading…
Cancelar
Guardar