参考如下键盘格式写了一个键盘输入,目前还不能进行运算,后期完善... 效果如下: 完整代码: from PyQt5.QtWidgets import (QApplication,QWidget,QPushButton,QLCDNumber,QFormLayout,QLineEdit,QLabel,QGridLayout) from PyQt5.QtGui import QFont from PyQt5.QtCore import Qt,QTimer,QDateTime,QDate,QTime,Q