代码固定在下面:
import tensorflow as tf
hello=tf.constant("hello,Python!")
sess=tf.Session()
print(sess.run(hello))
当前结果如下所示:
b'hello,Python!'
然后是截图。
那么,我应该如何去掉当前结果前的奇怪的“b”呢?
b
表示Hello, TensorFlow!
是字节串。 - call-in-co