基于Dragonbaord 410c开发板的Python交互设计(3)——天气预报xml数据解析
weatherXml.readNext()
#print("type:")
#print(type)
elif weatherXml.name()=="fengxiang":
ffengxiang=weatherXml.readElementText()
self.forecast_weather_info_dfengxiang.append(ffengxiang)
weatherXml.readNext()
#print(ffengxiang)
elif weatherXml.name()=="fengli":
ffengli=weatherXml.readElementText()
print("fenli")
self.forecast_weather_info_dfengli.append(ffengli)
weatherXml.readNext()
#print(ffengli)
else:
weatherXml.readNext()
DragonBoard 410c python XML 相关文章: