- 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):多線程、鎖、JMM、JUC、高并發設計模式
- 計算機圖形學編程(使用OpenGL和C++)(第2版)
- FreeSWITCH 1.6 Cookbook
- MySQL 8 DBA基礎教程
- Learning OpenStack Networking(Neutron)(Second Edition)
- Python機器學習:預測分析核心算法
- Photoshop CC移動UI設計案例教程(全彩慕課版·第2版)
- Data Science Algorithms in a Week
- Unity Android Game Development by Example Beginner's Guide
- 數據結構:Python語言描述
- 美麗洞察力:從化妝品行業看顧客需求洞察
- Web前端開發精品課:HTML5 Canvas開發詳解
- 面向對象分析與設計(第3版)
- Selenium WebDriver自動化測試完全指南
- Learning HTML5 by Creating Fun Games