Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
JohnSmith9982/ChuanhuChatGPT
Liuli
/
chatgpt
like
0
Runtime error
App
Files
Files
Community
main
chatgpt
/
test.py
Liuli
test
ef7b87e
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
234 Bytes
import
sqlite3
mydb=sqlite3.connect(
"user.db"
)
## 读取sqlite3的数据
cursor=mydb.cursor()
#查询表名
cursor.execute(
"SELECT username,password FROM user WHERE expire_time > date('now');"
)
Tables=cursor.fetchall()
print
(Tables)