MAI/LabWork01/FuncLoad.py

16 lines
331 B
Python

import csv
from LabWork01.Shop import Shop
def createList():
newListShop = []
file = open("../res/Stores.csv", "r")
data = list(csv.reader(file, delimiter=","))
file.close()
for elem in data:
newListShop.append(Shop(elem[1], elem[2], elem[3], elem[4]))
newListShop.pop(0)
return newListShop