파이썬3
pickle용 저장/불러들이기 기능
TTSR
2024. 3. 14. 13:40
728x90
반응형
import pickle
def load_pickle(path):
import pickle
with open(path,'rb') as f:
f1=pickle.load(f)
f.close()
return f1
def save_pickle(path,obj):
import pickle
with open(path,'wb') as f:
pickle.dump(obj=obj,file=path)
f.close()
728x90
반응형