Python ord & chr

ord & chr

ord: 返回单个 Unicode 字符编码的整数
chr: 给一个 Unicode 编码,返回一个字符 (0 ~ 1,114,111)

(ASCII 与 Unicode 前 128 位相同,之后就不同了)

Unicode 码编码表:https://www.unicode.org/charts/nameslist/

posted on 2019-09-29 10:34  doubtful  阅读(260)  评论(0编辑  收藏  举报

导航