我只有最后一个问题(我希望) :)
我正在尝试从xml中获取最后一个元素,并将其放入一个变量中。我使用的是django、python和lxml库。我想做的是,遍历从API调用中获得的XML,找到最新的项目(它将具有最大的ID号),然后将其赋给一个变量以存储在我的数据库中。我在寻找如何找到最新的元素时遇到了一些麻烦。to the id at index of 0 for time being, using the // in front of project makes sure that its lo