Hola amgos estoy probando objetos he creado la siguiente clase para crear el objeto
class libro: def __init___(self, isbn, nombre,edicion,stock,pvp,paginas): self.isbn=isbn self.nombre=nombre self.edicion=edicion self.stock=stock self.pvp=pvp self.paginas=paginas li=libro(1,'italia',2015,5,25000,315) pero me arroja el siguiente error Traceback (most recent call last): File "C:/Users/Gonzalo/AppData/Local/Programs/Python/Python35-32/prueba clase.py", line 10, in <module> li=libro(1,'italia',2015,5,25000,315) TypeError: object() takes no parameters he leído la documentación de python y sigo sin entender. ¿A que se debe este error?¿ me pueden ayudar? Saludos, Gonzalo
_______________________________________________ Python-es mailing list Python-es@python.org https://mail.python.org/mailman/listinfo/python-es FAQ: http://python-es-faq.wikidot.com/