- 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.
推薦閱讀
- JavaScript全程指南
- Python數據分析(第2版)
- Access 2016數據庫管
- Oracle Exadata專家手冊
- Python機器學習算法: 原理、實現與案例
- Frank Kane's Taming Big Data with Apache Spark and Python
- 零基礎學C語言第2版
- 軟件體系結構
- 編程改變生活:用Python提升你的能力(進階篇·微課視頻版)
- 計算機應用技能實訓教程
- ASP.NET Web API Security Essentials
- 面向對象程序設計及C++(第3版)
- Mapping with ArcGIS Pro
- C語言程序設計
- 面向對象程序設計及C++實驗指導(第3版)