小编Daw*_*ang的帖子

为什么结果打印 b'hello,Python!' ,当我使用张量流时?

代码固定在下面:

import tensorflow as tf

hello=tf.constant("hello,Python!")

sess=tf.Session()

print(sess.run(hello))
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

当前结果固定在下面:

“你好,Python!”

然后是截图

那么,我该怎么做才能去掉当前结果之前奇怪的“b”呢?

python tensorflow

3
推荐指数
1
解决办法
6859
查看次数

标签 统计

python ×1

tensorflow ×1