Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Noticia:
- def __init__(self, titulo, fecha, link, resumen):
- self.titulo = titulo
- self.fecha = datetime.datetime.strptime(fecha, "%d/%m/%Y - %H:%M")
- self.link = link
- self.resumen = resumen
- def __str__(self):
- return "\nTítulo: " + self.titulo + "\nFecha: " + str(self.fecha) + "\nLink: " + self.link + "\nResumen: " + self.resumen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement