摘要: python文件复制操作。 1 # -*- coding: utf-8 -*- 2 import shutil 3 import os 4 # file_path = 'C:\\Users\\WT\\Desktop\\001.jpg' 5 # new_path = 'C:\\Users\\WT\\D 阅读全文
posted @ 2019-12-18 14:28 巨鹿王十二 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 遇到问题xml文件读写,没有子节点需要新建ChildNode。 1 # -*- coding: utf-8 -*- 2 import os 3 import shutil 4 import xml.dom.minidom 5 6 def correctxml(srcdir,finddir): 7 n 阅读全文
posted @ 2019-12-18 14:27 巨鹿王十二 阅读(600) 评论(0) 推荐(0) 编辑