Files
TransPyC/ViperTestProject/App/main.vp
T
2026-08-28 05:59:47 +08:00

19 lines
448 B
Plaintext

import w32.win32console as w32cmd
import stdio
import t, c
pagecode: t.CDefine = 65001
@t.CExport
def main() -> int:
w32cmd.SetConsoleOutputCP(pagecode)
w32cmd.SetConsoleCP(pagecode)
print("你好,世界")
a: str = "测试"
b: int = 1234567
c: float = 1.234566
print(f"文本:{a},数字:{b},浮点数:{c}")
stdio.printf(f"文本:{a},数字:{b},浮点数:{c}")
return 0