📅  最后修改于: 2022-03-11 14:45:34.945000             🧑  作者: Mango
def open(self):
path = QFileDialog.getOpenFileName(self, 'Open a file', '',
'All Files (*.*)')
if path != ('', ''):
print(path[0])