Python中的chr和ode函数

来源:互联网 发布:matlab 图像融合算法 编辑:程序博客网 时间:2024/06/06 18:49

chr是数字转字符,ord是字符转数字


>>> help(chr)Help on built-in function chr in module __builtin__:chr(...)    chr(i) -> character        Return a string of one character with ordinal i; 0 <= i < 256.>>> help(ord)Help on built-in function ord in module __builtin__:ord(...)    ord(c) -> integer        Return the integer ordinal of a one-character string.

0 0
原创粉丝点击