from library.connecter.database.mongo import Op_Mongo
a = pickle.dumps(Op_Mongo)
#序列化
b = pickle.loads(a)
#反序列化
from library.connecter.database.mongo import Op_Mongo
a = pickle.dumps(Op_Mongo)
#序列化
b = pickle.loads(a)
#反序列化
转载于:https://www.cnblogs.com/lykops/p/8263128.html