- 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.
推薦閱讀
- C++程序設計(第3版)
- oreilly精品圖書:軟件開發者路線圖叢書(共8冊)
- Apache Spark Graph Processing
- Flash CS6中文版應用教程(第三版)
- QGIS:Becoming a GIS Power User
- 零基礎輕松學SQL Server 2016
- 學習正則表達式
- Mastering C++ Multithreading
- PHP+MySQL動態網站開發從入門到精通(視頻教學版)
- 關系數據庫與SQL Server 2012(第3版)
- Building Apple Watch Projects
- Instant Pygame for Python Game Development How-to
- 面向對象程序設計教程(C#版)
- Python數據分析實戰
- Python地球科學數據分析