Extra Character: Tensorflow Helloworld To Verify Correct Installation
This is to make sure the result received from tensorFlow hello-world here is fine The hello-world page If the Python program outputs the following, then the installation is succes
Solution 1:
It shows that this is a byte string (not a string). To know the difference, have a look at this question.
In short, a string can't be directly stored on a disk directly. It has to be encoded first & converted to byte string (a sequence of bytes). It can also be decoded back to a string. So, here if you don't wish to see that extra 'b', you can use the decode() function.
Solution 2:
The b
is not a string character (it is not within the quotes) but a prefix, indicating that the string is a byte literal containing ASCII character (as opposed to the standard python3 utf-8 encoding).
See also this question.
Post a Comment for "Extra Character: Tensorflow Helloworld To Verify Correct Installation"