在读取文件时候比如读取 xxx.csv 时候 可能报编码错误 类似于 ‘xxx’ codec can’t decode byte 0xac in position 211: illegal multibyte sequen id_list = [] with open('E:/work_spider/xxx/xx.csv', "r", encoding="utf-8") as csvfile: csvReader = csv.reader(csvfile) for content in csvReader: content = str(content) if 'l