> For the complete documentation index, see [llms.txt](https://qcmaker.gitbook.io/documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://qcmaker.gitbook.io/documents/software/mixlyxi-tong-jie-shao/kongzhi/for.md).

# for语句简介

![图2.3-7](https://2259527808-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LSXCnLP-UwKYzUqiVCQ%2F-LU9mtZFe4rG7WymDnYv%2F-LU9mzvZRw27CSvwUvn5%2Fimage104.jpg?generation=1545295636827551\&alt=media)

循环的次数通过变量 i 的大小来控制。所谓变量，就是在程序运行过程中大小发生变化的量。循环执行过程中，变量 i 从 1 开始，每次增加1，直到等于10，然后循环结束，执行下一步程序。每次循环，都会执行一次循环体的内部程序。
