import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' 转载于:https://www.cnblogs.com/huangshiyu13/p/8883898.html