python - Python destructor and explicitly cleanup
Normallywewilluse__init__astheconstructor,butwhatshallwedowhenwearedonewiththeobject?thekeyliesinthe__del__method,whentheobject'sreferencecountingisdownto0,thenthedestructorwillbecalled. Belowshowsane