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

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

主站蜘蛛池模板: 新竹县| 溧水县| 离岛区| 穆棱市| 岑巩县| 彰化县| 扎兰屯市| 红安县| 利津县| 广州市| 和平县| 岳阳县| 松阳县| 龙岩市| 陇西县| 大同市| 河间市| 大宁县| 德阳市| 舒兰市| 洪洞县| 霍邱县| 嘉祥县| 乐平市| 武穴市| 德清县| 婺源县| 黄冈市| 巴东县| 区。| 海南省| 军事| 常山县| 沁阳市| 洞头县| 读书| 宣化县| 淳化县| 麦盖提县| 中西区| 田阳县|