一、将列表数据写入txt、csv、excel
  1、写入txt
def text_save(filename, data):#filename为写入CSV文件的路径,data为要写入数据列表....,处理结束")
3、写入excel
#  将数据写入新文件
def data_write(file_path, datas):
    f = xlwt.Workbook()
    sheet1 =...# 这个列表生成式主要是将数据每8个为一个新的元素存入新的列表中,即列表套列表
        new_list = [data_list[i:i + 8] for i in range...chatDomain', 'chatUrl', 'code', 'pid', 'rank3', 'seller', 'shopId','venderId']
        ls = 0
        # 将标头循环写入表中...for head in heads:
            sheet.write(0, ls, head)
            ls += 1
        i = 1
        # 将数据分两次循环写入表中