【发布时间】:2018-03-08 10:40:08
【问题描述】:
代码固定在下面:
import tensorflow as tf
hello=tf.constant("hello,Python!")
sess=tf.Session()
print(sess.run(hello))
当前结果固定在下方:
b'你好,Python!'
然后截图
那么,我应该怎么做才能在当前结果之前删除奇怪的“b”?
【问题讨论】:
-
我的描述可能有点令人费解,其实我跑完代码后,结果的头部显示了一个“b”,让我很困惑。
-
b字符前缀表示Hello, TensorFlow!是byte string
标签: python tensorflow