You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
341 B
13 lines
341 B
import sqlite3
|
|
|
|
conn = sqlite3.connect('data/futures_analysis.db')
|
|
cursor = conn.execute('SELECT id, symbol, created_at FROM ai_analysis_cache ORDER BY created_at DESC LIMIT 10')
|
|
|
|
print('AI分析缓存记录:')
|
|
print('ID | 合约 | 创建时间')
|
|
print('-' * 60)
|
|
for row in cursor:
|
|
print(f'{row[0]} | {row[1]} | {row[2]}')
|
|
|
|
conn.close()
|