#-*- coding: UTF-8 -*- import csv import os def WriteToCsv(): '''写CSV文件''' titls = ['序号', '链接', '备注'] data = [ [', 'http://www.xiaoheiseo.com/', '小黑'], [', 'http://www.baidu.com/', '百度'], [', 'http://www.jd.com/', '京东'] ] csvfile = os.path.join(os.ge…