hi,I have not change the strategy. I have solved the problem by add these codes,thanks again!
with open("data.pkl","rb") as f:
self.datas = pickle.load(f)
for data in self.datas:
self.datasbyname[data._name] = data