Untitled

 avatar
unknown
python
3 years ago
150 B
6
Indexable
pet = Animal('Emirat', 10)
pet_obj = [vars(pet)]
print(pet_obj)

session.add_all((Animals(**pet) for pet in pet_obj))
session.commit()
session.close()
Editor is loading...