这是引入包的问题 修改前: from keras.utils import CustomObjectScope 修改后: from keras.utils.generic_utils import CustomObjectScope