Answers for "python byte like to string"

0

python byte like to string

>>> b"abcde"
b'abcde'

# utf-8 is used here because it is a very common encoding, but you
# need to use the encoding your data is actually in.
>>> b"abcde".decode("utf-8") 
'abcde'
Posted by: Guest on October-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language