PY
Python 在线运行
在线编写、运行并调试 Python 代码片段
import sys lines = [line.strip() for line in sys.stdin if line.strip()] records = []
3 个内置模板打开沙盒 →
内置起始模板与标准输入面板,一键编译运行 Python、JS、TS、Go、C、C++ 代码片段。
在线编写、运行并调试 Python 代码片段
import sys lines = [line.strip() for line in sys.stdin if line.strip()] records = []
在线编写、运行并调试 JavaScript 代码片段
const raw = typeof STDIN === 'string'
? STDIN
: (typeof require === 'function' ? require('fs').readFileSync(0, 'utf8') : '');
在线编译、运行并调试 TypeScript 代码片段
type Result<T, E = string> =
| { ok: true; value: T }
| { ok: false; error: E };
在线编译、运行并调试 Go 语言代码片段
package main import ( "bufio"
在线编译、运行并调试 C 语言代码片段
#include <stdio.h>
int main(void) {
int n = 0;在线编译、运行并调试 C++ 代码片段
#include <algorithm> #include <iostream> #include <vector>