Python: pickling and dealing with "AttributeError: 'module' object has no attribute 'Thing'" - Stefaan Lippens inserts content h
The pickle module of python is a very handy module if you want to store and retrieve your python data structures to and from a file. Using that module you don't need to waste your time on writing your own export and import functions any more. We will write
www.stefaanlippens.net
pickle 파일을 불러올 때 모듈이름을 지정해줘야한다.
something.__module__ = 'something'
joblib.dump(something, 'something.pkl')
'Language > Python' 카테고리의 다른 글
[Python] @property 너 누구야? 후아유 (0) | 2021.03.28 |
---|---|
[Python] 정적 메소드 staticmethod, classmethod (0) | 2021.03.27 |
[Pipenv] Python 3.7 was not found on your system (0) | 2020.11.19 |
Mac Terminal 에서 conda 안될 때 (0) | 2020.11.17 |
많이 쓰이는 pip 명령어 (0) | 2020.11.12 |