如何用Python打印行(Sqlite3,Python)

2024-09-27 23:23:09 发布

您现在位置:Python中文网/ 问答频道 /正文

为什么Python不打印行?它在控制台中什么也没说

def read_from_db():
cur.execute("select * from people where username=:useru1 and password=:userp1", {"useru1": useru1, "userp1": userp1}) 
for row in cur.fetchall():
    print(row[0])
    print(row[1])

con.commit()

从_db()读取


Tags: andfromreadexecutedbdefusernamewhere

热门问题