见原文1
2
3
4
5
6
7class Measurement:
__slots__ = ['x', 'y', 'val']
def __init__(self, x, y, value):
self.x = x
self.y = y
self.val = value
merge dict
merged_dict1
dict_merged = {**a, **b, **c}
见原文1
2
3
4
5
6
7class Measurement:
__slots__ = ['x', 'y', 'val']
def __init__(self, x, y, value):
self.x = x
self.y = y
self.val = value
merge dict
merged_dict1
dict_merged = {**a, **b, **c}
微信支付
支付宝