Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use the ascii function in python

Shulou Source: shulou.com Published: 2022-05-31 11:12:12 09月23日 Update

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.

Tags: Functions articles content appropriateness code examples ideas new knowledge more steps knowledge knowledge points examples articles details results industry information information channels follow Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Docker Xiaomi Linux Redmi