Python忽略warning警告错误
示例代码1:
import warnings
warnings.filterwarnings('ignore')
示例代码2:
import warnings
warnings.filterwarnings(action='ignore', category=UserWarning, module='gensim')
warnings.filterwarnings(action='ignore', category=FutureWarning, module='gensim')