TensorFlow2.0 出现 AttributeError: module ‘tensorflow’ has no attribute ‘python_io’ tf.python_io出错 TensorFlow 2.0 中使用 Python_io 暂时使用如下指令: tf.compat.v1.python_io.TFRecordWriter(filename)