How do I write JSON data stored in the dictionary data to a file?
data
f = open('data.json', 'wb') f.write(data)
This gives the error:
TypeError: must be string or buffer, not dict
← Назад к списку