In the evolution of learning, careful partners can not help but find the existence of unicher function, yes can often see, that is, about the conversion of the evolution of the conversion, then there must be a small partner to be happy, because the evolution of the preparation has always been a headache in the more headaches, if there is a specialized service function, you can certainly solve the evolution of the conversion of this headache, I'm trying to solve the problem for everyone, I'm trying to solve the problem for everyone, I'm trying to solve the problem for everyone. The answer is below.
1. Description:
Returns unicode characters.
2. Grammar:
unichr()
3. Parameters:
Returns a number that is a binary number
4. Type:
unichr(x ) converts an integer to a Unicode character.
5. Example demonstration:
>>> unichr(109) u'a' >>> unichr(98) u'b'
Content Extension:
Python unichr() function
descriptive
The unichr() function is basically the same as the chr() function, except that it returns unicode characters.
Note: Python3 does not support unichr(), use the chr() function instead.
grammatical
The following is the syntax of the unichr() method.
unichr(i)
parameters
i -- A number that can be in either decimal or hexadecimal form.
return value
Returns a unicode character.
an actual example
The following shows an example of using the unichr() method:
>>>unichr(97) u'a' >>> unichr(98) u'b' >>> unichr(99) u'c'
to this article on the python unichr function knowledge point summary of the article is introduced to this, more related python unichr function is what the content please search for my previous articles or continue to browse the following related articles I hope you will support me more in the future!