Python3学习笔记-字符串和编码

字符串函数 ord( )函数将字符转换为编码  chr( )函数将编码转换为字符     >>> ord('E')     69     >>> chr(85)     'U' encode( ‘utf-8’)函数将便于表示的str类型转换为便于存储和传输的bytes类型(encode编码)  decode(‘utf-8’ )函数将便与存储和传输的bytes类型转换为便于表示的str类型(deco
相关文章
相关标签/搜索