【发布时间】:2018-10-15 19:35:23
【问题描述】:
我最近在我的 Conda 中安装了 tensorflow: 在运行以下代码时,它给了我一个额外的“b”。 我不知道那个'b'的原因..? 为什么要打印它以及如何摆脱它?该程序运行在 Jupyter NoteBook 中实现的 Tensorflow 环境中
import tesnorflow as tf
msg_1 = tf.constant('Welcome to TensorFlow')
with tf.Session() as s:
print(s.sub(msg_1))
结果
b'Welcome to TensorFlow'
【问题讨论】:
标签: python tensorflow jupyter-notebook