基于Dragonbaord 410c开发板的Python交互设计(3)——天气预报xml数据解析
#break
else:
weatherXml.readNext()
break
elif weatherXml.name()=="night":
#print("night info:")
weatherXml.readNext()
while not weatherXml.atEnd():
if weatherXml.isStartElement():
if weatherXml.name()=="type":
ntype=weatherXml.readElementText()
self.forecast_weather_info_ntype.append(ntype)
weatherXml.readNext()
#print(ntype)
elif weatherXml.name()=="fengxiang":
nfengxiang=weatherXml.readElementText()
DragonBoard 410c python XML 相关文章: