Python忽略warning警告錯誤
1)代碼中警告
import warnings warnings.filterwarnings("ignore")
2)忽略命令行下警告錯誤的輸出:
python -W ignore yourscript.py
本博客地址: wukong1688
本文原文地址:https://www.cnblogs.com/wukong1688/p/10941744.html
轉載請著名出處!謝謝~~