8 lines
459 B
Python
8 lines
459 B
Python
import sqlite3
|
|
c = sqlite3.connect('history.db')
|
|
c.execute("INSERT INTO orders(phone, track_no, status, created) VALUES('13800138000','YT20261028001','运输中','2026-10-28')")
|
|
c.execute("INSERT INTO orders(phone, track_no, status, created) VALUES('13800138000','YT20261028002','派送中','2026-10-27')")
|
|
c.execute("INSERT INTO orders(phone, track_no, status, created) VALUES('13900139000','YT20261028003','已签收','2026-10-26')")
|
|
c.commit()
|
|
print("ok")
|