Python - Byte

About

Byte (Bit Octet) - Computer storage Unit in Python

Empty byte

b''

To

toString

Python - String (str type)

  • Python 2
encoding = 'utf-8'
'nico'.decode(encoding)
# or
unicode('nico', encoding)
  • Python 3
encoding = 'utf-8'
str(b'nico', encoding)
# or
b'hello'.decode(encoding)

Powered by ComboStrap