📅  最后修改于: 2022-03-11 15:03:34.059000             🧑  作者: Mango
dictionary_varibale = [
dict([
(colname, row[i])
for i,colname in enumerate(df.columns)
])
for row in df.values
]
print(json.dumps(dictionary_varibale))