有两种方法来实现 warnings 忽略 1、在主程序中添加代码实现 import warnings warnings.filterwarnings("ignore") 2、在训练命令中实现 python -W ignore main.py