是否有一种“ a”模式,例如为csv多次写入txt.-file?每当执行时,我的代码总是会覆盖csv。
import csv
row = ['2', 'Marie', 'California']
with open('test_CSV.csv', 'w') as writeFile: #File darf nicht offen in excel sein, sonst keine permission
writer = csv.writer(writeFile)
writer.writerow(row)
#readFile.close()
writeFile.close()