0
代碼下方固定:爲什麼結果打印b'hello,Python!' ,當我使用tensorflow?
import tensorflow as tf
hello=tf.constant("hello,Python!")
sess=tf.Session()
print(sess.run(hello))
當前結果下方固定:
b'hello,巨蟒」
然後截圖
所以,我該怎麼辦當前結果之前砸怪「B」?
我的描述可能是有點令人費解,其實,在我跑的代碼,結果頭顯示其混淆了我很多「B」。 – DawnZhang
「b」字符前綴表示'Hello,TensorFlow!'是一個[byte string](https://stackoverflow.com/questions/6224052/what-is-the-difference-between-a-string-and-一個字節的字符串) – ScouserInTrousers