The code below creates a "tee" object that tees stdout to a file as well as the terminal.

If do del t as below when I'm done tee-ing, the object doesn't get deleted and the __del__()<,python"/>

首页 > 解决方案 > 为什么不del delete it?

The code below creates a "tee" object that tees stdout to a file as well as the terminal.

If do del t as below when I'm done tee-ing, the object doesn't get deleted and the __del__()<