在Python中,是否有一个库方法可以复制同一类的两个(已经存在的)实例之间的所有属性?
我的意思是,类似 Apache Commons 的东西PropertyUtilsBean.copyProperties()
PropertyUtilsBean.copyProperties()
Try destination.__dict__.update(source.__dict__).
destination.__dict__.update(source.__dict__)