@author jackzhenguo @desc @date 2019/2/15 14 字符串转字节 字符串转换为字节类型 In [12]: s = "apple" In [13]: bytes(s,encoding='utf-8') Out[13]: b'apple'