- 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.
推薦閱讀
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- Modular Programming with Python
- Android Studio Essentials
- Python程序設計(第3版)
- Responsive Web Design with HTML5 and CSS3
- 數據結構(Java語言描述)
- C#實踐教程(第2版)
- 好好學Java:從零基礎到項目實戰
- Spring Boot+Vue全棧開發實戰
- R數據科學實戰:工具詳解與案例分析
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- Spring MVC+MyBatis開發從入門到項目實踐(超值版)
- Oracle Data Guard 11gR2 Administration Beginner's Guide
- 從零開始學算法:基于Python
- Android項目實戰:博學谷