# 通过例子学V语言

[Brazilian Portuguese](https://v-community.gitbook.io/v-by-example/pt-br) | [Deutsch](https://v-community.gitbook.io/v-by-example/de) | [English](https://github.com/v-community/v_by_example/tree/95e90e23e088b2b2c09d23f3408fe01c26bb766a/en/README.md) | [Bahasa Indonesia](https://v-community.gitbook.io/v-by-example/id) | [Chinese](https://v-community.gitbook.io/v-by-example/cn)

> Learn V by Examples

V by Example是使用带注释的程序示例对V语言的介绍。

* [例子](#examples)
* [贡献](#contributing)
* [版权](#license)

Discord: <https://discord.gg/d3Qk65J>

## Section 1

通过一些基本的例子和练习来介绍V语言。

* [Hello World](https://v-community.gitbook.io/v-by-example/cn/examples/section_1/hello_world)
* [V Keywords](https://v-community.gitbook.io/v-by-example/cn/examples/section_1/keywords)
* [Primitives](https://v-community.gitbook.io/v-by-example/cn/examples/section_1/primitives)
* [Variables](https://v-community.gitbook.io/v-by-example/cn/examples/section_1/variables)
* [Strings](https://v-community.gitbook.io/v-by-example/cn/examples/section_1/strings)
* [Comment](https://v-community.gitbook.io/v-by-example/cn/examples/section_1/comment)

## Section 2

本节讨论V语言中主要的运算和条件语句。

* [Operator](https://v-community.gitbook.io/v-by-example/cn/examples/section_2/operator)
* [If-else](https://v-community.gitbook.io/v-by-example/cn/examples/section_2/if-else)
* [Match](https://v-community.gitbook.io/v-by-example/cn/examples/section_2/match)
* [Loops](https://v-community.gitbook.io/v-by-example/cn/examples/section_2/loops)

## Section 3

学习V语言函数和方法以及最重要的数据结构：数组和结构体

* [Functions](https://v-community.gitbook.io/v-by-example/cn/examples/section_3/functions)
* [Arrays](https://v-community.gitbook.io/v-by-example/cn/examples/section_3/arrays)
* [Struct](https://v-community.gitbook.io/v-by-example/cn/examples/section_3/struct)
* [Methods](https://v-community.gitbook.io/v-by-example/cn/examples/section_3/methods)

## Section 4

在本节中，我们将深入研究数组对象内部的特征。其他的例子，比如JSON、写/读文件和测试，都会涉及到。

* [Array Functions](https://v-community.gitbook.io/v-by-example/cn/examples/section_4/array-functions)
* [Testing](https://v-community.gitbook.io/v-by-example/cn/examples/section_4/testing)
* [Files](https://v-community.gitbook.io/v-by-example/cn/examples/section_4/files)
* [JSON](https://v-community.gitbook.io/v-by-example/cn/examples/section_4/json)

## Team

当前维护者/作者列表：

* [Don Alfons Nisnoni](https://github.com/dhonx)
* [Ivo-Balbaert](https://github.com/ibalbaert)
* [Sven Patrick Meier](https://github.com/SuicideS3ason)
* [Swastik Baranwal](https://github.com/Delta456)
* [Vitor Oliveira](https://github.com/vbrazo)

## Contributing

先阅读 [CONTRIBUTING.md](https://github.com/v-community/v_by_example/tree/95e90e23e088b2b2c09d23f3408fe01c26bb766a/cn/CONTRIBUTING.md) 然后开始贡献. 我们通常根据贡献来选择新的维护者。

## License

[MIT](https://github.com/v-community/v_by_example/tree/95e90e23e088b2b2c09d23f3408fe01c26bb766a/LICENSE/README.md)


---

# Agent Instructions: 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://v-community.gitbook.io/v-by-example/cn.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.
