2017년 7월 16일 일요일

Python 3 string에서 bytes로 변환 | Python 3 Convert string to bytes

string to bytes

data = ""           #string
data = "".encode()  #bytes
data = b""          #bytes

bytes to string

data = b""          #bytes
data = b"".decode() #string
data = str(b"")     #string

Read More

댓글 없음:

댓글 쓰기