发布于 1年前
Python 将字符串转换为字节
print("convert string to bytes using encode method".encode())
# b'convert string to bytes using encode method'
print("convert string to bytes using encode method".encode())
# b'convert string to bytes using encode method'