下面是一个选择文件的代码fromPyQt5.QtWidgetsimport*fromPyQt5.QtGuiimport*fromPyQt5.QtCoreimport*importsys,osclassSelectDialog(QDialog):def__init__(self,parent=None):super(SelectDialog,self).__init__(parent)self.path=os.getcwd()self.initUI()self.setWindowTitle("选择")self.resize(240,100)definitUI(self):grid=QGridLa