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().
Given a string of length one, return an integer representing the Unicode code point of the character when the argument is a unicode object, or the value of the byte when the argument is an 8-bit string.
示例:
print("somestring" + chr(65)) # prints "somestringA"
我想你在找^{} :
和^{} :
示例:
相关问题 更多 >
编程相关推荐