02 2021 档案
摘要:1、读取超链接: strold = cell.hyperlink.target 2、写入超链接: cell.value='=HYPERLINK("{}","{}")'.format('link','name') 3、批量替换超链接: 有时excel会自动更新excel中的超链接,有时禁用自动更新后还
阅读全文
摘要:1、pip openpyxl库: pip install openpyxl -i http://pypi.douban.com/simple --trust-host pypi.douban.com 2、导入模块 import openpyxl from openpyxl load_workbook
阅读全文
摘要:1 import sys 2 from PyQt5.Qt import * 3 4 class Mwindow(QWidget): 5 leftclick = False 6 7 def __init__(self): 8 super().__init__() 9 self.resize(500,5
阅读全文
摘要:1 import sys 2 from PyQt5 import QtWidgets,QtCore 3 from PyQt5.QtCore import Qt 4 from PyQt5.uic.properties import QtGui 5 6 key_list=['Qt.ControlModi
阅读全文
摘要:1 import sys 2 import typing 3 4 from PyQt5 import QtWidgets, QtGui, QtCore 5 import random 6 7 class Mywindow(QtWidgets.QWidget): 8 def __init__(self
阅读全文
摘要:1 信号与槽的设置中,槽函数不用写括号: btn.clicked.connect(cao()) def cao(): ******** 会报错:argument 1 has unexpected type 'NoneType' 应写成: btn.clicked.connect(cao) 2 重写类继
阅读全文

浙公网安备 33010602011771号