<Row ss:Index="14">
<Cell ss:StyleID="TableRowHeader" ss:Index="2">
<Data ss:Type="String">10000</Data>
</Cell>
<Cell ss:StyleID="TableRowHeader" ss:Index="3">
<Data ss:Type="String">S00001</Data>
</Cell>
<Cell ss:StyleID="TableRowHeader" ss:Index="6">
<Data ss:Type="String">SPI-37-2018</Data>
</Cell>
<Cell ss:StyleID="TableRowHeader" ss:Index="7">
<Data ss:Type="String">02/26/2018</Data>
</Cell>
<Cell ss:StyleID="TableRowHeader" ss:Index="8">
<Data ss:Type="String">22</Data>
</Cell>
<Cell ss:StyleID="TableRowHeader" ss:Index="9">
<Data ss:Type="String">02/26/2018</Data>
我想从特定的ss中提取数据:StyleId和ss:Index。 你能建议一个方法吗? 我试过print(xmlTree.find(&#39; .// Cell&#39;)。attrib [&#39; ss:StyleID&#39;]),但它显示NoneType没有attrib