【发布时间】:2021-10-25 17:12:50
【问题描述】:
check = {'Test_Category': {0: 'right', 1: 'wrong'}, 'arg1': {0: 'test2', 1: 'test12'},
'arg2': {0: 'test4', 1: 'test41'}, 'arg3': {0: 'test5', 1: 'test55'},
'arg4': {0: 'test6', 1: 'test67'}}
我想要预期的结果:
[{'Test_category': 'right', 'arg1': 'test2', 'arg2': 'test4', 'arg3': 'test5','arg4':'test6'},
{'Test_category': 'wrong', 'arg1': 'test12', 'arg2': 'test41', 'arg3': 'test55','arg4':'test67'}]
【问题讨论】:
-
你甚至没有花时间正确地写出你的预期结果。
-
任何人都有任何想法
-
你试过什么?什么不起作用?
标签: python python-3.x list dictionary