How to use the ascii function in python
In this article Xiaobian for you to introduce in detail "how to use the ascii function in python", the content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to use the ascii function in python" can help you solve your doubts.
Simple usage example:
> ascii ('yisu')
"'yisu'"
Related examples
# intializing non printable characters
String = 'informative'
# printing the above character using ascii (object)
Print (ascii (string))
If you run the above code, the result returned is:'\ xa2'
After reading this, the article "how to use the ascii function in python" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, you are welcome to follow the industry information channel.