import jsonwith open('who.json', 'r') as f: data = json.load(f) dependencies = data['dependencies'] for k, v in dependencies.iteritems(): print(f'{k}@{v}')
sheet_obj.append(row_obj) ret_obj[sheet.title]=sheet_objreturnret_objif__name__=='__main__':#读取到所有的sheet文件xlsx_filelist =read_xlsx()#处理单个sheetforiinxlsx_filelist: obj=handle(i) result=json.dumps(obj)print(result) 读取结果为 {"Sheet1": [ {"id":"1","id_order":"1231...