📜  ascii 程序 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:46.948000             🧑  作者: Mango

代码示例1
# Python program to print
# ASCII Value of Character
 
# In c we can assign different
# characters of which we want ASCII value
 
c = 'g'
# print the ASCII value of assigned character in c
print("The ASCII value of '" + c + "' is", ord(c))