我从 copyreg 进口了泡菜。然后我使用属性转储将字典转换为字节 b'\x80\x04...' 但它导致 AttributeError: 'function' object has no attribute 'dumps'
from copyreg import pickle
d={"name":value}
d=pickle.dumps(d)
输出
AttributeError: 'function' object has no attribute
我从 copyreg 进口了泡菜。然后我使用属性转储将字典转换为字节 b'\x80\x04...' 但它导致 AttributeError: 'function' object has no attribute 'dumps'
from copyreg import pickle
d={"name":value}
d=pickle.dumps(d)
输出
AttributeError: 'function' object has no attribute