📅  最后修改于: 2022-03-11 14:45:43.232000             🧑  作者: Mango
#Make sure to import PyQt5.QtCore first
self.label = QLabel(self,alignment=Qt.AlignCenter)
pixmap = QPixmap("image.png")
self.label.setPixmap(pixmap)