Initial commit: 商品售卖网站

This commit is contained in:
2026-04-13 07:20:09 +08:00
commit c6154273f2
865 changed files with 26573 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import sqlite3
conn = sqlite3.connect('backend/sale.db')
cursor = conn.cursor()
cursor.execute("SELECT id, name, price FROM products ORDER BY id DESC LIMIT 25")
print("Products in database:")
for row in cursor.fetchall():
print(f" ID: {row[0]}, Name: {row[1]}, Price: {row[2]}")