Skip

Skip[stream,type]

用于在一个输入流中跳过指定类型的对象.

Skip[stream,type,n]

用于跳过指定类型的 n 个对象.

更多信息和选项

  • 除了在成功跳过指定对象时返回 Null,否则返回 $Failed 外,Skip 的行为方式类似于 Read.

范例

基本范例  (1)

一个数字文件:

打开一个流,读入文件:

读入第一个数:

Skip 第二个数:

关闭一个流:

Wolfram Research (1991),Skip,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Skip.html.

文本

Wolfram Research (1991),Skip,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Skip.html.

CMS

Wolfram 语言. 1991. "Skip." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/Skip.html.

APA

Wolfram 语言. (1991). Skip. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Skip.html 年

BibTeX

@misc{reference.wolfram_2024_skip, author="Wolfram Research", title="{Skip}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/Skip.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_skip, organization={Wolfram Research}, title={Skip}, year={1991}, url={https://reference.wolfram.com/language/ref/Skip.html}, note=[Accessed: 18-November-2024 ]}