官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 湟中县| 周宁县| 九龙城区| 塘沽区| 无为县| 莱芜市| 龙南县| 江陵县| 彰化市| 丽江市| 崇信县| 理塘县| 安顺市| 吴旗县| 荣昌县| 平安县| 安吉县| 嘉定区| 建阳市| 普洱| 林芝县| 新丰县| 祁门县| 扎囊县| 桃园县| 阿拉善右旗| 巩留县| 湖北省| 静宁县| 承德市| 温州市| 海丰县| 临汾市| 扬中市| 山东省| 石景山区| 河北区| 马关县| 双峰县| 南靖县| 顺昌县|