import os list1 = ['staff_id', 'name', 'age', 'phone', 'dept', 'enroll_date'] def staff_info(): #获取员工信息生成器函数 with open('staff_table.txt', 'r', encoding='utf-8') as f: for line in f : x =line.split(',') staff_dic = {k: v for (k, v) in zip(list1,x)} yi…