Python
6
Вклад в тег
psycopg2.connect(ваши_аргументы_функции, async=1)
import openpyxl
import os
import dbf
book = openpyxl.open("C:\\pypypy\\январь_2401231.xlsx", read_only=True)
sheet = book.active
table = dbf.Table('kvpl.dbf', 'FIO C(60); ADR C(13); TEPLO F(19,5); VODA F(19,5); ELECTRO F(19, 5)', codepage='cp866')
table.open(mode=dbf.READ_WRITE)
for row in range(2, sheet.max_row + 1):
FIO = sheet[row][0].value
ADR = sheet[row][1].value
TEPLO = sheet[row][3].value
VODA = sheet[row][4].value
ELECTRO = sheet[row][5].value
goods = (FIO, ADR, TEPLO, VODA, ELECTRO)
table.append(goods)
table.close()
table.append(tuple(goods))
$ jt -r