freeCodeCamp/guide/chinese/python/range-function/index.md

13 lines
254 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Range Method
localeTitle: 范围方法
---
# 范围功能
如果你需要迭代一系列数字内置函数range就派上用场了。它生成算术进度
#### 示例用法
`py for i in range(5): print(i)`
####输出 `0 1 2 3 4`