> For the complete documentation index, see [llms.txt](https://docs.1l.lol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.1l.lol/computer-basics/programming-languages.md).

# 程序设计语言分类

### 三大类程序设计语言

1. **机器语言**：由二进制 0/1 指令组成，计算机能直接执行，可读性最差。
2. **汇编语言**：用助记符（如 MOV、ADD）表示指令，需要汇编器翻译。
3. **高级语言**：接近自然语言，如 C++、Python、Java，需要编译或解释后才能执行。

由低到高：机器语言 → 汇编语言 → 高级语言；可读性与可移植性越来越高。

### 常见高级语言

* **C / C++**：效率高，常用于系统、竞赛
* **Python**：语法简洁，常用于数据分析、人工智能
* **Java**：跨平台，企业级开发
* **JavaScript**：网页前端

### 编译与解释

* **编译型**（C++）：先整体翻译成可执行文件，再运行，速度快。
* **解释型**（Python）：运行时逐句翻译执行，灵活但稍慢。

源程序 →（编译）→ 目标程序 →（链接）→ 可执行程序。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.1l.lol/computer-basics/programming-languages.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
