我有一个字典列表,看起来像这样:
toCSV = [{'name':'bob','age':25,'weight':200},{'name':'jim','age':31,'weight':180}]
我应该怎么做才能将其转换为如下所示的csv文件:
name,age,weight bob,25,200 jim,31,180
python csv dictionary data-conversion
csv ×1
data-conversion ×1
dictionary ×1
python ×1