Python

Data Transfer Object

techbard 2016. 5. 11. 15:29
반응형

# Data Transfer Object


class Pool:

def __init__(self, **kwargs):

self.__dict__ = kwargs


m = Pool(one=1, two=2, three=3)

m.four=4

print(m.one)

print(m.two, m.three)


# 결과

1

2 3


반응형