This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # openpyxl: librería para manipular excel desde python | |
| import openpyxl | |
| # creamos nuevo libro: | |
| wb = openpyxl.Workbook() | |
| # seleccionamos la hoja activa, osea la primera | |
| hoja = wb.active | |
| # verificamos el titulo de la hoja: | |
| print('Hoja activa: '+hoja.title) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#!/usr/bin/env python | |
| # -*- encoding: utf-8 -*- | |
| import hashlib as hasher | |
| import datetime as date | |
| from time import sleep | |
| class Block: | |
| """Estructura del bloque.""" | |
| def __init__(self, index, timestamp, data, previous_hash): | |
| self.index = index |