摘要: abc = [a,b,c,d ] 新建列表abc abc[0] = 'a' 修改内容'a' abc.insert = (0,'a') 插入内容’a‘ print (abc[0]) 提取显示0位内容 del.abc[0] 删除0位内容 abc.pop() 提取最后一位内容,可再调用 abc.remov 阅读全文
posted @ 2017-11-17 11:34 anglesheepbobo 阅读(123) 评论(0) 推荐(0) 编辑
摘要: import xml.etree.ElementTree as ET 导入xml模块root = ET.parse('GHO.xml') 分析指定xml文件tree = root.getroot() 获取第一标签data = tree.find('Data') 查找第一标签中'Data'标签for 阅读全文
posted @ 2017-11-17 09:21 anglesheepbobo 阅读(4893) 评论(0) 推荐(1) 编辑