import PyQt5.QtCore from frame.app import App PyQt5.QtCore.QCoreApplication.setAttribute(PyQt5.QtCore.Qt.AA_EnableHighDpiScaling) app = App() app.exec() # 消息循环(程序循环处理操作系统发过来的消息)阻塞函数 print("程序正常终止")