我试图使用pythondocx模块解析一组特定的表数据。在
我需要以键值格式检索“Authorities”和相应的“version”,以便可以使用这些数据进行进一步处理。在
如果我使用-
d = OrderedDict(zip(table.cell(rowNo, 0).text, table.cell(rowNo, 2).text))
这给了我orderedDictionary,但我不能使用d['Juno']
访问这些值
我希望能给我4.5.6
我在解析后得到以下格式的数据-
Juno=4.5.6
Acrux=3.5.6
Mars=5.6.7
你可以定义一个字典并实现-
将以字典格式为您提供所需的数据
相关问题 更多 >
编程相关推荐