Skip to main content
 首页 » 编程设计

python之为什么结果打印 b'hello,Python!' ,当我使用tensorflow

2024年08月19日28yjmyzz

<分区>

代码固定在下面:

import tensorflow as tf 
 
hello=tf.constant("hello,Python!") 
 
sess=tf.Session() 
 
print(sess.run(hello)) 

当前结果固定在下面:

b'hello,Python!'

然后截图

那么,如何去掉当前结果前奇怪的“b”呢?