Изменил(а) на 'import.py'

This commit is contained in:
yurec 2023-05-25 21:13:02 +05:00
parent 7d1b84a372
commit 76ad6059ca
1 changed files with 19 additions and 19 deletions

View File

@ -3,8 +3,8 @@ con = sqlite3.connect("C:\Users\Public\database.db")
cur = con.cursor() cur = con.cursor()
with open('c:\obmen\import.csv', newline='') as csvfile: with open('c:\obmen\import.csv', newline='') as csvfile:
spamreader = csv.reader(csvfile, delimiter=';', quotechar='|') csvdata = csv.reader(csvfile, delimiter=';', quotechar='|')
for row in spamreader: for row in csvdata:
marka=row[0] marka=row[0]
sp2=row[1] sp2=row[1]
alkokode=row[2] alkokode=row[2]