一.文本框智能补全 completer = QtWidgets.QCompleter(data) completer.setCompletionMode(QtWidgets.QCompleter.PopupCompletion) lineEdit_2.setCompleter(self.c_completer(data)) 二.下拉列表框智能补全 #增加选项元素 for i in range(len(items_list)): combobox.addItem(items_list[i]) co