Python--将 txt文件里的-字典类型-的数据写到Excel中--xlwt--TxtToExcel
使用Python的xlwt模块,将txt文件里的字典类型的数据写到Excel中#!/usr/bin/envpython#-*-coding:utf-8-*-importxlwt"""{"1":[3],"2":[4,5],"3":[5,5,6],"4":[6,1,2,3,4],"5":[7,4],"6":[8],"7":[9,1,2,3,4,5,6],"307":[5,7,8,9,11,12]}字典