8.'bytes', 字符串转换成字节流.第一个传入参数是要转换的字符串,第二个参数按什么编码转换为字节. class bytes(object) | bytes(iterable_of_ints) -> bytes # bytes([1, 2, 3, 4]) bytes must be in range(0, 256) | bytes(string, encoding[, errors]) -> bytes # bytes('你妈嗨', encoding='utf-8') | bytes(b…