![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pyhton
文章平均质量分 50
你の猫
拉屎是最舒服的
展开
-
Python :DOM生成xml文件
在生成XML文件中,我们主要使用Dom生成XML文件来完成 1、生成XML节点(node) createElement("node_name") 2、给节点添加属性值(Attribute) node.setAttribute("att_name", "arr_value") 3、节点的标签值(data)` createTextNode("node_value") 其中第1、3点在创建完节点(节点值)之后,还需使用下面的方法添加到指点的节点的位置下面: prev_node.appendChil原创 2021-10-08 14:34:34 · 323 阅读 · 0 评论 -
PySimpleGUIWeb.Graph
Graph 的基本概念 Graph 实际上是一种 Canvas,可以将 Graph 组件看作是一个绘图板。它的原型是: Graph(canvas_size, # (x, y), 绘图区域尺寸,单位像素 graph_bottom_left, # (x, y), 左下角坐标 graph_top_right, # (x, y), 右上角坐标 background_color=None, # 背景色 pad=None, # (左右, 上下),原创 2021-04-27 11:56:36 · 899 阅读 · 0 评论