파이썬

byte <-> str 변환

바리새인 2021. 1. 2. 15:35

temp = r'abcd'

str 변환 : temp.decode()

 

temp = 'abcd'

byte 변환 : temp.endcode()