摘要: xml总结 1、解析 str 文件 tree,ElementTree,type root,Element,type2、操作 Element: tag,text,find,iter,get,set... 3、重新写入 tree.write() str没有tree >ElementTree(root) 阅读全文
posted @ 2018-08-06 17:17 旅行没有终点 阅读(619) 评论(0) 推荐(0)
摘要: {'status': 1000, 'desc': 'OK'} <class 'dict'> {"status": 1000, "desc": "OK"} <class 'str'> {"weatherinfo":{"city":"哈尔滨","cityid":"101050101","temp":"5 阅读全文
posted @ 2018-08-06 17:05 旅行没有终点 阅读(216) 评论(0) 推荐(0)