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.
chr(i)
Return a string of one character whose ASCII code is the integer i. For example, chr(97) returns the string ‘a‘. This is the inverse of ord(). The argument must be in the range [0..255], inclusive; ValueError will be raised if i is outside that range. See also unichr().
中文说明:
返回整数i对应的ASCII字符。与ord()作用相反。
参数x:取值范围[0, 255]之间的正数。
>>> chr(46)
‘.‘
>>> chr(57)
‘9‘
>>> chr(89)
‘Y‘
本文出自 “大云技术” 博客,请务必保留此出处http://hdlptz.blog.51cto.com/12553181/1898431
原文:http://hdlptz.blog.51cto.com/12553181/1898431