运行代码时会有很多warning输出,比如版本更新等. 如果需要忽略这些输出信息有两种方式: [1] - Python 代码里: ```python import warnings warnings.filterwarnings('ignore') ``` [2] - 命令行里: ```shell python -W ignore test.py ``` 运行代码时会有很多warning输出,比如版本更新等.如果需要忽略这些输出信息有两种方式:[1] - Python 代码里:import warnings warnings.filterwarnings('ignore')[2] - 命令行里:python -W ignore test.py Last modification:April 19, 2021 © Allow specification reprint Like If you think my article is useful to you, please feel free to appreciate