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
'뇌새김질' 카테고리의 다른 글
[Python] 리스트(List) vs 튜플(Tuple) and Dictionary (0) | 2021.07.21 |
---|---|
[Python] 파일을 모듈로 사용 시 주의할 점(if __name__ == '__main__') (0) | 2021.07.21 |
[Python] Method 종류 (instance, class, static) (0) | 2021.07.16 |
[Python] String 포맷 & prefix (f, b, u, r) (0) | 2021.07.15 |
[Python] VS Code로 빌드하기 (0) | 2021.06.30 |