Data not saving SQLite3 python3.4
问题 I am currently trying to create a sqlite database of peoples names and ip While my code seems to work when I run it the data doesn't show up when I run SELECT * from ips; in terminal after running SQLite3 ips Below is my code. Both it and the SELECT * from ips; are running in ~/Desktop/SQL import sqlite3 as sql import socket import struct def iptoint(ip): return str(struct.unpack("i",socket.inet_aton(ip))[0]) database = sql.connect("ips") createTable = True if createTable: database.execute(''