运行代码时会有很多warning输出,比如版本更新等.

如果需要忽略这些输出信息有两种方式:

[1] - Python 代码里:

import warnings
warnings.filterwarnings('ignore')

[2] - 命令行里:

python -W ignore test.py
Last modification:April 19, 2021
If you think my article is useful to you, please feel free to appreciate