CellID
更多信息
- 通常,系统对具有 CreateCellID->True 设置的笔记本中插入的每个新单元自动创建 CellID.
- 当 CellID 由 Mathematica 管理时,在给定笔记本中,它的数值确定是唯一的. 可以手动设置 CellID,但是无法确保唯一性.
范例
基本范例 (1)
设置笔记本的默认选项,创建新单元的单元 ID,然后写入一个单元:
读取单元,显示前端已添加了 CellID 选项:
相关指南
-
▪
- 底层笔记本编程
文本
Wolfram Research (2007),CellID,Wolfram 语言函数,https://reference.wolfram.com/language/ref/CellID.html.
CMS
Wolfram 语言. 2007. "CellID." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/CellID.html.
APA
Wolfram 语言. (2007). CellID. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/CellID.html 年
BibTeX
@misc{reference.wolfram_2025_cellid, author="Wolfram Research", title="{CellID}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/CellID.html}", note=[Accessed: 30-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_cellid, organization={Wolfram Research}, title={CellID}, year={2007}, url={https://reference.wolfram.com/language/ref/CellID.html}, note=[Accessed: 30-April-2026]}