0 Star 0 Fork 0

python/Python

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
xmlparse.py 240 Bytes
一键复制 编辑 原始数据 按行查看 历史
python 提交于 2013-06-19 18:21 +08:00 . xml parse
#!/usr/bin/env python3
import xml.etree.ElementTree as ET
tree = ET.parse('./doubannote/config/templete.xml')
root = tree.getroot()
for user in root:
name = user[1][0].text
pwd = user[1][1].text
print('%s %s' % (name, pwd))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/T0007/python.git
git@gitee.com:T0007/python.git
T0007
python
Python
master

搜索帮助