- 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.
推薦閱讀
- 程序員面試白皮書
- Java 開發從入門到精通(第2版)
- 基于Java技術的Web應用開發
- Java虛擬機字節碼:從入門到實戰
- Linux環境編程:從應用到內核
- SAS數據統計分析與編程實踐
- Android Native Development Kit Cookbook
- Yocto for Raspberry Pi
- The Complete Coding Interview Guide in Java
- R Data Analysis Cookbook(Second Edition)
- Unity 2017 Mobile Game Development
- RESTful Web Clients:基于超媒體的可復用客戶端
- 多媒體技術及應用
- C語言程序設計
- 高質量程序設計指南:C++/C語言