1 2 3 4 5 6 7 8 9 10 11 12
| import csv with open('test.csv','w') as f: writer = csv.writer(f) writer.writerow(['白眉鹰王','43']) writer.writerow(['金毛狮王','45'])
import csv with open('test.csv','w') as f: writer = csv.writer(f) writer.writerows([('王源','18'),('易烊千玺','20'),('王俊凯','19')])
|