Print Trick for Python 2024-01-12 | programming 这是一个可以同时将print内容输出到屏幕以及保存到日志文件的简单代码。 主要利用了 builtins 对 print 方法进行 hook,从而让方法全局有效。…… Continue reading