当我在python中发出warnings.warn()警告时,输出到stderr不仅包括我的警告方法,还包括来自源代码的违规行.我想从源代码中删除这一行,因为它确实有助于清楚地表达警告.有谁知道如何做到这一点?
python warnings
python ×1
warnings ×1