摘要: # 导入模块 from docx import Document import os from win32com.client import Dispatch import pandas as pd # 转换doc文件 def doc_to_docx(file_path): """ 将指定的doc文 阅读全文
posted @ 2024-05-27 23:34 AZ26 阅读(40) 评论(0) 推荐(0)
摘要: # 导入模块 import tkinter.filedialog import os from win32com.client import Dispatch import pandas as pd import win32com.client # 转换doc文件 def replace_main( 阅读全文
posted @ 2024-05-27 23:34 AZ26 阅读(61) 评论(0) 推荐(0)
摘要: import tkinter.filedialog import pandas as pd import os import pdfplumber import tkinter class PdfReader: # output_file = tkinter.filedialog.asksaveas 阅读全文
posted @ 2024-05-27 23:29 AZ26 阅读(65) 评论(0) 推荐(0)
摘要: 数据处理部分 def data_handle_1(): df = pd.read_excel(os.path.join(middleware_file_path1, "家乐福未清项.xlsx"), dtype=str) print(df) # df.insert(loc=0,column="发票号码 阅读全文
posted @ 2024-05-27 21:50 AZ26 阅读(60) 评论(0) 推荐(0)
摘要: import tkinter as tk import pandas as pd import tkinter.filedialog import os import traceback windows = tk.Tk() ####按长度拆分——自定义函数 ##拆分函数 def division_b 阅读全文
posted @ 2024-05-22 22:25 AZ26 阅读(40) 评论(0) 推荐(0)
摘要: import os import zipfile from tkinter import filedialog class ZipDir: """ ZipFile() 用于创建1个 zip 文件对象,示例中的三个参数分别表示: filename:压缩成的zip包的路径(含压缩包名称);例如:xxx. 阅读全文
posted @ 2024-05-22 22:24 AZ26 阅读(50) 评论(0) 推荐(0)
摘要: import tkinter as tk import os import tkinter.filedialog import tkinter.simpledialog import pandas as pd import tkinter.messagebox import tkinter.ttk 阅读全文
posted @ 2024-05-22 22:24 AZ26 阅读(112) 评论(0) 推荐(0)
摘要: import itertools import os import pandas as pd def get_result(hope, list_input, used): """ :param hope: # 期望相加所得参数 :param list_input: # 所有数值 :param us 阅读全文
posted @ 2024-05-22 22:21 AZ26 阅读(65) 评论(0) 推荐(0)
摘要: import os import tkinter as tk import tkinter.filedialog from tkinter import ttk import tkinter.messagebox from tkinter import scrolledtext import xlw 阅读全文
posted @ 2024-05-22 22:19 AZ26 阅读(62) 评论(0) 推荐(0)
摘要: import os import tkinter.filedialog import xlwings as xw class Substitute: path = tkinter.filedialog.askdirectory(title='!!!!!!!!!!!!!!!!!请选择excel存放路径 阅读全文
posted @ 2024-05-22 21:54 AZ26 阅读(112) 评论(0) 推荐(0)