String & Bytes

string 为字符串, bytes 是字节.

在需要使用 bytes 输入数据的时候, 一般使用 string 做参数, 然后转换: bytes b = bytes(s);

Last updated

Was this helpful?