String format is better than strcat

This commit is contained in:
Julien Balestra
2015-08-19 20:49:49 +02:00
parent 1792af8541
commit 60e860b30c

View File

@@ -50,6 +50,6 @@ cursor.insert()
# Iterate through the records
cursor.reset()
for key, value in cursor:
print('Got record: ' + key + ' : ' + value)
print('Got record: %s : %s' % (key, value))
conn.close()