主界面定义主界面。使用“w+”模式创建test.txt文件(我添加了个背景图片,若不需要可省略)#打开时预加载储存在test.txt文件中的花名册namelist = []with open("test.txt", "r") as f: ...