sqlite3类型错误:';url';是无效的关键字

sqlite3类型错误:';url';是无效的关键字,sqlite,url,typeerror,Sqlite,Url,Typeerror,当我执行包含 conn_1 = sqlite3.connect('file:content.sqlite?mode=ro', uri=True)#read only 我有个错误 conn_1 = sqlite3.connect('file:content.sqlite?mode=ro', url=True)#read only TypeError: 'url' is an invalid keyword argument for this function 如何解决这个问题呢

当我执行包含

    conn_1 = sqlite3.connect('file:content.sqlite?mode=ro', uri=True)#read only
我有个错误

    conn_1 = sqlite3.connect('file:content.sqlite?mode=ro', url=True)#read only
TypeError: 'url' is an invalid keyword argument for this function

如何解决这个问题呢?

你已经得到了
url=True
(你很好)它应该是
uri=True
(你是眼睛)。我也用过“uri”这个词-同样的问题