python function - chr(i)

高洛峰
Release: 2016-10-17 15:32:09
Original
1304 people have browsed it

chr(i)

Chinese description:

Returns the ASCII character corresponding to the integer i. The opposite effect of ord().

Parameter x: a positive number in the value range [0, 255].

Version: This function is available in all versions of python2 and python3. There are no compatibility issues.


English description:

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. The usage in php is the same


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!