摘要: 各种函数 ord(‘A’)获取字符整数表示,chr()转化为对应字符。 .encode('ascii') .encode('utf-8')可以编码为指定的字节 。decode()可以把bytes变为str。.decode('utf-8',erroes='ignore')可以忽略错误字节 len()函 阅读全文
posted @ 2021-10-07 22:25 星星梦 阅读(27) 评论(0) 推荐(0)