For
范例
打开所有单元 关闭所有单元基本范例 (2)
For[i = 0, i < 4, i++, Print[i]]用逗号作为 For 的各个部分的分隔符,用分号作为程序各个部分的分隔符:
For[i = 1;t = x, i ^ 2 < 10, i++, t = t ^ 2 + i;Print[t]]范围 (2)
技术笔记
-
▪
- 循环控制结构
历史
1988年引入 (1.0)
文本
Wolfram Research (1988),For,Wolfram 语言函数,https://reference.wolfram.com/language/ref/For.html.
CMS
Wolfram 语言. 1988. "For." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/For.html.
APA
Wolfram 语言. (1988). For. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/For.html 年
BibTeX
@misc{reference.wolfram_2026_for, author="Wolfram Research", title="{For}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/For.html}", note=[Accessed: 12-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_for, organization={Wolfram Research}, title={For}, year={1988}, url={https://reference.wolfram.com/language/ref/For.html}, note=[Accessed: 12-November-2026]}