参考链接: Python Examples of warnings.catch_warnings (programcreek.com)
import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore', category=RuntimeWarning)
pass
参考链接: Python Examples of warnings.catch_warnings (programcreek.com)
import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore', category=RuntimeWarning)
pass