一个奇怪的泡菜故障
a weird Pickle glitch
这是出现错误的代码:
month_date = pickle.load(open("month.dat", "rb"))
这是我得到的错误:
File "/Users/lvanrem/PythonTest/weatherAI_V2.py", line 25, in <module>
month_date = pickle.load(open("month.dat", "rb"))
EOFError: Ran out of input
如果你能帮助我,请告诉我...
awnser确实是文件是空的。
我的解决方案是我添加了一个 except 语句,该语句将用备份文件填充文件。
当我中断我的 python 脚本时发生了这种情况。
thx for the awnser (=
这是出现错误的代码:
month_date = pickle.load(open("month.dat", "rb"))
这是我得到的错误:
File "/Users/lvanrem/PythonTest/weatherAI_V2.py", line 25, in <module>
month_date = pickle.load(open("month.dat", "rb"))
EOFError: Ran out of input
如果你能帮助我,请告诉我...
awnser确实是文件是空的。 我的解决方案是我添加了一个 except 语句,该语句将用备份文件填充文件。 当我中断我的 python 脚本时发生了这种情况。
thx for the awnser (=