从 TransPyC 主项目中分离 VRTE
This commit is contained in:
commit
14ff9d109f
121 files changed
+41596
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in new issue
Block a user