import csv rows2 = ['abc1/ab1c','N'] for n in range(10): f = open("ok.csv", 'a',newline='') writer = csv.writer(f) writer.writerow(rows2) f.close()
import csv rows2 = ['abc1/ab1c','N'] for n in range(10): f = open("ok.csv", 'a',newline='') writer = csv.writer(f) writer.writerow(rows2) f.close()