module ‘tensorflow.python.layers.layers’ has no attribute ‘Input’ 可能是导包导错啦! 解决方法 更换导的包名 from tensorflow_core.python.keras import models, layers