python怎么导出csv
使用csv
# coding: utf-8
import csv
csvFile = open('test.csv', 'wb')
writer = csv.writer(csvFile)
writer.writerow(['姓名', '年龄', '电话'])
data = [
('张三', '18', '13609988834'),
('李四', '20', '13803830013')
]
writer.writerows(data)
csvFile.close()
赞0
踩0