摘要: # coding = 'utf-8' # 依据excel表格中所提供的IP,在另一张表中查找其所属网段 import pandas as pd import IPy df = pd.read_excel('net.xlsx') col_name = df.columns.tolist() index 阅读全文
posted @ 2022-12-08 11:20 f_carey 阅读(222) 评论(0) 推荐(0) 编辑
摘要: # coding = 'utf-8' # description: 合并目标文件夹中多个txt文件,到指定文件中。 import os def file_merge_to_one(dirpath): # 创建一个新的文档 newfn = dirpath.split('\\')[-1] + '.txt 阅读全文
posted @ 2022-12-08 11:15 f_carey 阅读(299) 评论(0) 推荐(0) 编辑