from PyQt5.QtWidgets import QApplication from form.win import Win class App(QApplication): def __init__(self): super(App,self).__init__([]) #调用父类构造器,完成初始化 self.__init__ self.win = Win() self.win.show()