1 引言
后續待補充
2 代碼
b = b"Hello, world!" # bytes
s = "Hello, world!" # string
print('str --> bytes')
print(bytes(s, encoding="utf8"))
print(bytes(s)) #默認utf8編碼
print('bytes --> str')
print(str(b, encoding="utf-8"))
print(str(b)) #默認utf8編碼
