123456789
x = 'abc'# string to bytesb = bytes(x, encoding='utf-8')#butes to strs = str(b, encoding='utf-8')