3
我有this鹹菜文件,我想用下面的Python腳本unpickle:_pickle.UnpicklingError:無效負載的關鍵,「X」
import _pickle as pickle
pickle_file = open('bof.pkl', 'rb')
data = pickle.load(pickle_file)
當我運行程序時,我得到以下錯誤:
Traceback (most recent call last):
File "unpickle.py", line 4, in <module>
data = pickle.load(pickle_file)
_pickle.UnpicklingError: invalid load key, 'x'.
我該如何解決這個問題,因爲我找不到這樣做的方法。