我希望我的程序将每个警告写入 .txt 文件中。有没有办法在不使用 catch_warnings 的情况下做到这一点?
python compiler-warnings
compiler-warnings ×1
python ×1