通过PyQt5提供的命令行工具
pyuic5 -o BaiduAD.py BaiduAD.ui
在py 显示 UI代码
from PyQt5 import QtCore, QtGui, QtWidgets
import sys
from PyQt5.QtWidgets import QMainWindow
if __name__ == "__main__":
app = QtWidgets.QApplication(sys.argv)
form = QtWidgets.QWidget()
w = Ui_Form()
w.setupUi(form)
form.show()
sys.exit(app.exec_())