first commit
This commit is contained in:
1 parent
2e4edfeb42
commit
2063d3d6d4
5 files changed
+130
-76
No files matched your search
@@ -0,0 +1,17 @@
|
||||
|
||||
import sqlite3
|
||||
import json
|
||||
|
||||
conn = sqlite3.connect('database.db')
|
||||
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("SELECT * FROM Tracker")
|
||||
|
||||
rows = cursor.fetchall()
|
||||
|
||||
for index, distance, mouse_tracker in rows:
|
||||
print(f"Index: {index}, Distance: {distance}")
|
||||
print(f"Mouse tracker: {json.loads(mouse_tracker)}")
|
||||
|
||||
# 关闭连接
|
||||
conn.close()
|
||||
Reference in new issue
Block a user