You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
438 B
18 lines
438 B
import sqlite3
|
|
conn = sqlite3.connect('qr_results1.db3')
|
|
c = conn.cursor
|
|
|
|
out = open('results.txt', 'w')
|
|
n = 1
|
|
|
|
for x in range(1, 30):
|
|
for y in range(1, 30):
|
|
c.execute('select value from i where row=? and column=?', (x, y))
|
|
i = c.fetchone()[0]
|
|
c.execute('select value from j where row=? and column=?', (x, y))
|
|
j = c.fetchone()[0]
|
|
out.write('constraint %d: %s < %s\n' % (n, i, j))
|
|
n += 1
|
|
|
|
out.close()
|
|
conn.close() |