Python3使用内置CSV模块读写CSV格式文件 January 10, 2018 ```python import csv # open的时候可以指定编码 csv_reader = csv.reader(open('1.csv')) csv_writer = csv.writer(open('2.csv','w')) for row in csv_reader: print(row) # ['公告编号', '公告内容', ...] csv_writer.writerow(row) # 还有writerows方法 # csv_writer.writerows(rows) ```