repl.it
@acwoss/

InfiniteShoddyMegabyte

Python

No description

fork
loading
Files
  • main.py
  • offline.csv
main.py
1
2
3
4
5
6
7
8
9
import csv

with open('offline.csv', 'a', encoding='utf-8', newline='') as f:
    try:
        writer = csv.writer(f)
        writer.writerow([1, 2, 3, 4])
        print('SEM CONEXAO! ARQUIVO CSV GERADO.')
    finally:
        f.close()