Pickling
Pickle translates almost any type of object into a string. pickle.dumps takes an object as a parameter and returns a string representation.
 
                       
Although the new object has same value as the old, it is not the same object. In other words, pickling and then unpickling has the same effect as copying the object.
from Thinking in Python
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号