with tf.Session() as sess: print(product.eval()) # product为张量的名称 转载于:python - 如何在 TensorFlow 中打印张量对象的值? - IT工具网