B2017 题解

· · 题解

这是一篇 Python 题解。

Python 中的 ord(s) 函数接受一个长度为 1 的字符串 s,返回它对应的 ASCII 或 unicode 数值。

print(ord(input().strip()))