> For the complete documentation index, see [llms.txt](https://bothelp.hktrpg.com/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bothelp.hktrpg.com/guide/zh-hans/yu-le-gong-neng/cheng-shi-ma-zhi-xing-playground.md).

# 代码运行Playground

## 支持语言及用法

1️⃣ javascript\
`.code js console.log("Hello JS");`

2️⃣ typescript\
`.code ts const n:number = 7; console.log(n);`

3️⃣ python\
`.code py print("Hello Python")`

4️⃣ java\
`.code java System.out.println("Hello Java");`

5️⃣ c

```c
.code c
#include <stdio.h>
int main() {
printf("Hello C\n");
return 0;
}
```

6️⃣ c++

```cpp
.code cpp
#include <iostream>
int main() {
std::cout << "Hello C++" << std::endl;
return 0;
}
```

7️⃣ go\
`.code go package main; import "fmt"; func main(){fmt.Println("Hello Go")}`

8️⃣ rust

`.code rs fn main(){println!("Hello Rust");}`

9️⃣ php

`.code php <?php echo "Hello PHP\n";`

🔟 ruby

`.code rb puts "Hello Ruby"`
