Ai
1 Star 2 Fork 1

atlas/DDA-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test_xml.py 357 Bytes
一键复制 编辑 原始数据 按行查看 历史
BaoLin Chen 提交于 2023-11-25 16:57 +08:00 . finish contact judgement after iterations
import xml.etree.ElementTree as ET
import matplotlib.pyplot as plt
tree = ET.parse('arch.geo')
root = tree.getroot()
jointlist=root[0][1]
n=jointlist.__len__()
for i in range(n):
value=jointlist[i].text
values=value.split(" ")
print(values)
plt.plot([float(values[0]),float(values[2])],[float(values[1]),float(values[3])])
plt.show()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/atlas999/dda-python.git
git@gitee.com:atlas999/dda-python.git
atlas999
dda-python
DDA-python
master

搜索帮助