inputdata.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:cnn-bnn 作者: jpdz 项目源码 文件源码
def file_pickle(pickle_files, save, force):
  if force or not os.path.exists(pickle_files):
    try:
      with open(pickle_files,'wb') as f:
        pickle.dump(save, f, pickle.HIGHEST_PROTOCOL)
    except Exception as e:
        print('Unable to save data to', pickle_files, ':', e)
    return pickle_files
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号