一、python常见字符编码 ord()函数获取字符的整数表示,chr()函数把编码转换为对应的字符 for i in range(100): print(chr(i)) encode转bytes形式 通过encode()方法可以编码为指定的bytes decode转utf8 把这个乱码转回来,乱码就是中文