tensorflow1版本和2版本语句兼容 把 import tensorflow as tf 改成 import tensorflow.compat.v1 as tf tf.disable_v2_behavior()