我从网上收到的数据如下:
<collective2>
<status>OK</status>
<positionstatus>
<calctime>2017-10-17 03:25:57:000</calctime>
<symbol>AA</symbol>
<position>102</position>
<averagecost>48.86</averagecost>
</positionstatus>
</collective2>
有什么帮助吗。例如get'OK',。。。也叫“AA” 提前谢谢。在
我试过:
^{pr2}$
您并没有给出很多关于您需要什么的信息,只是简单地阅读xml.etree documentation的前几段就应该告诉您,下面的代码为您提供了所需的结果:
希望这有帮助。在
这是我的方法:
相关问题 更多 >
编程相关推荐