代码封装 考虑到代码的扩展性和可维护性,我们需要封装一下代码: # -*- coding: utf-8 -*- """ Created on Fri May 8 22:30:19 2020 @author: Giyn """ import sys from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QPushButton class Simple_Window(QWidget): def __init__