![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
python
不会coding的雷老师
这个作者很懒,什么都没留下…
展开
-
python小工具-自动导入目录下所有txt文档生成csv文件
import csv import os import shutil from chardet.universaldetector import UniversalDetector def get_encode_info(file): with open(file, 'rb') as f: detector = UniversalDetector() for line in f.readlines(): detector.feed(line...原创 2021-12-02 23:37:14 · 170 阅读 · 0 评论 -
python小工具-实现xls文件按列不同内容分割成 多个csv文件
# 导入filedialog 文件对话框模块 from tkinter import filedialog # 导入pandas库 import pandas as pd # 导入excel处理模块xlrd import xlrd # 创建list数据类型 列表 import csv sheet_names = [] list_c = [] # 打开路径文件并将文件路径赋值在path path = filedialog.askopenfilename() print("path:"+path) # 打原创 2021-12-02 23:35:18 · 786 阅读 · 0 评论