pickle.dumps参数

pickle.dumps(obj[,protocol])¶
Return the pickled representation of the object as a string, instead of writing it to a file.
If the protocol parameter is omitted, protocol 0 is used. If protocol is specified as a negative value orHIGHEST_PROTOCOL, the highest protocol version will be used.
Changed in version 2.3: The protocol parameter was added.
protocol参数说明 默认为0,负数或HIGHEST_PROTOCOL使用 highest protocol

你可能感兴趣的:(python)