1. pickle.dump(obj, file). 将Python数据转换并保存到pickle格式的文件内。 with open('data.pickle', 'wb') as f: pickle.dump(data, f).
確定! 回上一頁