from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import * # pyqt核心
import sys
if __name__ == '__main__':
#创建app
app =QApplication(sys.argv)
#窗体显示
window = QWidget()
window.show()
#结束
sys.exit(app.exec())
‘’‘另外python补充
import head(其他文件)
person = head.Person()
person.show()
from head import *
person=Person()
person.show()
from hia.hello import show_case//hia为一个文件夹 hello为该文件夹的一个文件
print(show_case)