본문 바로가기
뇌새김질

[Python] bytes to String변환

by 파란소스 2021. 7. 19.

bytes = b'its bytes'

print(bytes) ==> b'its bytes'

 

result = bytes.decode('utf-8')

print(result) ==> its bytes

 

result = str(bytes, 'utf-8')

print(result) ==> its bytes