diff options
Diffstat (limited to 'archivo.py')
-rw-r--r-- | archivo.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -28,6 +28,12 @@ def crear_modelo(): modelo.append([1, 'Hola Mundo']) return modelo +def abrir_efemeride(): + '''open the ephemeris file and return a dictionary''' + archivo = open('files/efemerides.pkl', 'rb') + texto = pickle.load(archivo) + return texto + def guardar_dato(indice, contenido, archivo): '''get a id dependig of the unix time, and the content''' indice = str(indice) |