> For the complete documentation index, see [llms.txt](https://bothelp.hktrpg.com/hktrpg-guan-fang-shi-yong-jiao-xue/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/hktrpg-guan-fang-shi-yong-jiao-xue/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&#x20;

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

6️⃣ c++&#x20;

```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&#x20;

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

9️⃣ php&#x20;

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

🔟 ruby&#x20;

`.code rb puts "Hello Ruby"`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bothelp.hktrpg.com/hktrpg-guan-fang-shi-yong-jiao-xue/yu-le-gong-neng/cheng-shi-ma-zhi-xing-playground.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
