我正在尝试从Google文件中提取所有数据。
如果Google的回复非常大,我在将文件写入CSV文件时遇到问题。
try:
gc.disable()
actList=[]
ofile = open(file_loc, "w")
writer = csv.writer(ofile, delimiter=',',quotechar='|',quoting=csv.QUOTE_ALL)
actList.append(content)
writer.writerow(actList)
ofile.close()
gc.enable()
except BaseException as e:
print"THIS IS ERROR",e