我有一个要转换成json的python字典。
Python字典:
{"20090209.02s1.1_sequence.txt": [645045714, 3559.6422951221466, 206045184], "20090209.02s1.2_sequence.txt": [645045714, 3543.8322949409485, 234618880]}
所需的输出:
{
"file_name":"20090209.02s1.1_sequence.txt",
"file_information": [645045714, 3559.6422951221466, 206045184],
{
"file_name":"20090209.02s1.2_sequence.txt",
"file_information": [645045714, 3543.8322949409485, 234618880],
}
}
尝试过,json.dumps但是我没有得到想要的输出。
慕斯709654
慕后森
相关分类