0
Django help!!!!
can anybody tell me how to read CSV files using Django..
1 ответ
+ 1
import csv
def csv_reader(file_obj):
reader = csv.reader(file_obj)
for row in reader:
print(" ".join(row))
if __name__ == "__main__":
csv_path = "????.csv"
with open(csv_path, "r") as f_obj:
csv_reader(f_obj)