import warnings warnings.filterwarnings("ignore") 转载于:https://www.cnblogs.com/rise0111/p/11439762.html