- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 90字
- 2021-07-09 20:40:24
Conversion functions
In order to convert a character value to ASCII code, the ord() function is used, and for converting ASCII code to character, the chr() function is used, as shown in the following screenshot:

Here, when we want to get the ASCII code for 'A', it shows 65, which you can easily get from the aforementioned table. The letter 'A' can be located on the sixth row and fifth column; thus, its value is 65. Likewise, we can get the letter corresponding to a particular ASCII code.
推薦閱讀
- Advanced Quantitative Finance with C++
- Learn Blockchain Programming with JavaScript
- 深入淺出Spring Boot 2.x
- VSTO開發(fā)入門教程
- Learning Linux Binary Analysis
- Python自然語言處理(微課版)
- Serverless架構(gòu)
- Oracle從入門到精通(第5版)
- Microsoft Azure Storage Essentials
- 動手學(xué)數(shù)據(jù)結(jié)構(gòu)與算法
- 打開Go語言之門:入門、實戰(zhàn)與進階
- 零基礎(chǔ)學(xué)Kotlin之Android項目開發(fā)實戰(zhàn)
- Unity Character Animation with Mecanim
- C語言程序設(shè)計
- VC++ 2008專題應(yīng)用程序開發(fā)實例精講