Files
wehub-resource-sync e4dcfc49aa
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:00:43 +08:00

13 lines
986 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
short_description: "在隔离沙箱中运行一段代码(python/c/cpp),返回 stdout/stderr。"
when_to_use: "当计算、算法校验或数值验证比纯手算更可靠时使用。"
input_format: "`language`python、c 或 cpp+ `code`——完整、可直接运行的源码。可选 `stdin` 与 `timeout`(秒,默认 30)。"
guideline: "自行写出完整源码并把结果打印到 stdout;代码执行适合做客观验证,不应替代文字解释。"
note: "在本回合 workspace 内运行,与 `exec` 共用同一套 OS 级隔离沙箱;未配置沙箱后端时不可用。把生成文件保存到工作目录即可作为产物输出。"
phase: "verification"
aliases:
- name: run_code
description: "运行一段代码(python/c/cpp),用于计算、验证或可视化。"
input_format: "`language` + `code`;可选 `stdin`、`timeout`。"
when_to_use: "适合做客观校验、快速计算或小规模实验。"
phase: "verification"