用pickle保存中间变量:

with open('path/file_name.pickle', 'wb') as handle:

    pickle.dump(variable_name, handle, protocol=2)

用pickle读取中间变量:

with open('path/file_name.pickle', 'rb') as handle:
    variable_name=pickle.load(handle)

相关文章:

  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案