def loads(model_obj, data_dict):
    """将dict数据按key写入到模具的属性"""
    for key, value in data_dict.items():
        if hasattr(model_obj, key) and getattr(model_obj, key) == value:
            continue
        setattr(model_obj, key, value)
