14 lines
382 B
Plaintext
14 lines
382 B
Plaintext
import t
|
||
|
||
# ============================================================
|
||
# 内置函数(Python 语义,自动与 builtins 关联,无需显式 import)
|
||
# ord: 字符 → ASCII 码(int)
|
||
# chr: ASCII 码 → 字符(t.CChar)
|
||
# ============================================================
|
||
|
||
def ord(s: t.CChar) -> int:
|
||
return s
|
||
|
||
def chr(i: int) -> t.CChar:
|
||
return i
|