2018年12月19日

追加写入

摘要: import csvwith open('example.csv', 'a+') as f: writer = csv.writer(f) datas = [['name', 'age'], ['Bob', 14], ['Tom', 23], ['Jerry', '18']] writer.writ 阅读全文

posted @ 2018-12-19 17:34 袁佳佳 阅读(223) 评论(0) 推荐(0)

写csv

摘要: import csvimport psycopg2class IO_rw(object): def __init__(self): self.csvfile = open("weobo_9.csv", "w") self.writer = csv.writer(self.csvfile) self. 阅读全文

posted @ 2018-12-19 15:14 袁佳佳 阅读(174) 评论(0) 推荐(0)

导航