删除警告的方法 python

import warnings
warnings.filterwarnings('ignore')
原文地址:https://www.cnblogs.com/carlber/p/9925633.html