170607 pyhon忽略警告

来源:互联网 发布:电子书资源 知乎 编辑:程序博客网 时间:2024/06/06 05:31

在开头处添加一下代码:

import warningswarnings.filterwarnings("ignore")