在最开始 import input_data 会发现input_data报错。 在网上查找解决方案 解决方案: from tensorflow.examples.tutorials.mnist import input_data