【发布时间】:2009-10-06 13:33:56
【问题描述】:
我正在尝试将一些数据存储在二进制文件中:
import os, pickle
o = some_object()
file = open('test', 'wb') #this causes the error
pickle.dump(o, file)
file.close()
我收到此错误:IOError: invalid mode: wb
它不起作用(无论是在测试服务器上还是在 GAE 本身上),显然是因为它没有写入权限。
如何在 Appengine 上创建文件?
【问题讨论】:
标签: python google-app-engine file io