Data Transfer Object
by techbard 2016. 5. 11. 15:29
# Data Transfer Objectclass Pool: def __init__(self, **kwargs): self.__dict__ = kwargsm = Pool(one=1, two=2, three=3)m.four=4print(m.one)print(m.two, m.three)# 결과12 3
# 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
Design Pattern
2016.05.17
클래스로 inclusive_range 구현
2016.05.12
@property
2016.05.11
logging
2016.05.10
댓글 영역