def change_node_properties(nodelist, kv_map, is_delete=False):
    "''修改/增加 /删除 节点的属性及属性值\n       nodelist: 节点列表\n       kv_map:属性及属性值map"
    for node in nodelist:
        for key in kv_map:
            if is_delete:
                if (key in node.attrib):
                    del node.attrib[key]
            else:
                node.set(key, kv_map.get(key))
''修改/增加 /删除 节点的属性及属性值
nodelist: 节点列表
kv_map:属性及属性值map
def change_node_properties(nodelist, kv_map, is_delete=False):
    "修改/增加 /删除 节点的属性及属性值\n       nodelist: 节点列表\n       kv_map:属性及属性值map"
    for node in nodelist:
        for key in kv_map:
            if is_delete:
                if (key in node.attrib):
                    del node.attrib[key]
            else:
                node.set(key, kv_map.get(key))