Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Obj:
- def __init__(self, data):
- self.data = data
- self.prop_one = self.data['prop_one']
- self.prop_two = self.data['prop_two']
- # куча таких свойств из одного словаря
- self.prop_twenty = self.data['prop_twenty']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement