ord() 函数的名称代表什么?
What does the name of the ord() function stand for?
官方Python文档解释ord(c)
ord(c):
Given a string representing one Unicode character, return an integer representing the Unicode code point of that character. For example, ord('a') returns the integer 97 and ord('€') (Euro sign) returns 8364. This is the inverse of chr().
没有说明ord
的意思,google搜索没有帮助。
它的由来是什么?
官方Python文档解释ord(c)
ord(c):
Given a string representing one Unicode character, return an integer representing the Unicode code point of that character. For example, ord('a') returns the integer 97 and ord('€') (Euro sign) returns 8364. This is the inverse of chr().
没有说明ord
的意思,google搜索没有帮助。
它的由来是什么?