camera = self.lineEdit_2.text() pyqt中的获取的输入框文本,在python中,有中文时,需要转化 unicode(camera.toUtf8(), 'utf-8', 'ignore')