📜  如何在python代码示例中找到字符的ascii值

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

代码示例1
# ASCII stands for American Standard Code for Information Interchange.
# It is a numeric value given to different characters and symbols, 
# for computers to store and manipulate. 
# Use - ord() function to find this value.

print(ord("A"))
# output: 65
# Keep in mind that capital and simple of the same letter have different values.