提问人:skrhee 提问时间:10/22/2021 最后编辑:skrhee 更新时间:10/22/2021 访问量:775
Dill TypeError:无法腌制 'sqlite3.Connection“对象。函数中的任何位置都没有 Sqlite
Dill TypeError: cannot pickle 'sqlite3.Connection' object. No Sqlite anywhere in function
问:
我收到 TypeError: cannot pickle 'sqlite3.Connection“对象。问题是,我没有在我的项目中的任何地方使用sqlite,在这个函数中绝对没有使用。
下面是一个显示错误的最小工作示例:
def test_outer(a):
def test_inner(a):
return a+1
return a
dill.dumps(test_outer)
答: 暂无答案
评论