仅接受PyQlin 4字符我写了一个方法来验证lineEdit中的字符: def is_validate(self): regex = QtCore.QRegExp("[a-z-A-Z_]+") txtDep ...2024-04-29 已阅读: n次