0
我將實體到谷歌雲存儲,但是字符串被存儲爲BLOB/BASE64字符串:谷歌雲存儲實體屬性保存爲BLOB,而不是OS字符串
complete_key = client.key('Task', 'sample_task')
task = datastore.Entity(key=complete_key)
task.update({
'category': 'Personal',
'done': False,
'priority': 4,
'description': 'Learn Cloud Datastore'
})
client.put(task)
您還可以在Py2中的字符串前添加一個'u',以使它們成爲UTF-8字符串。例如,u'Learn Cloud Datastore' –