资源简介
excel比对小软件(pyqt python源码和应用下载),该小软件可以比对两个表里的相同列在其他列输出标志或在其他列插入目标列
代码片段和文件信息
import xlrd
import excel多功能比对界面
import sys
from PyQt5.QtWidgets import QMainWindowQWidgetQDialogQApplication
from PyQt5.QtGui import QIcon
import tkinter.messagebox as msgbox
import tkinter as tk
# from xlutils import copy
from xlutils import copy
import pandas as pd
# import threading
# import time
# class excel_compare():
class excel_compare(QWidget):
def __init__(self):
QWidget.__init__(self)
self.compare_ui = excel多功能比对界面.Ui_Form()
self.compare_ui.setupUi(self)
def excel_true_false():
if window.compare_ui.lineEdit.text() and window.compare_ui.lineEdit_2.text() and window.compare_ui.lineEdit_3.text() and window.compare_ui.lineEdit_4.text() and window.compare_ui.lineEdit_5.text() and window.compare_ui.lineEdit_6.text() and window.compare_ui.lineEdit_7.text():
file_path_original = r‘‘ + str(window.compare_ui.lineEdit.text())#转义文件路径,怕有奇葩名字
data_original = xlrd.open_workbook(file_path_original)
#获取sheet
- 上一篇:通过GUI页面实现猜数游戏
- 下一篇:用malplotlib作带箭头的坐标轴
评论
共有 条评论