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'