写入Excel import xlwt book=xlwt.Workbook(encoding='utf-8') sheet=book.add_sheet('xiangxin') # 标题名 title=['姓名','班级','住址','手机号'] # 输入的内容 shuru=[ ['bred','class1','mingdong',188109], ['shade','class2','gugong',3332], ['dd','class3','changcheng',6666] ] #…