FileFormatQ

Listing of Formats »

FileFormatQ[source,"fmt"]

如果与 source 相对应的文件可能导入为 "fmt" 格式,则返回 True,否则返回 False.

FileFormatQ[source,{"fmt1","fmt2",}]

如果 source 可能作为 "fmti" 之一导入,返回 True.

更多信息和选项

范例

打开所有单元关闭所有单元

基本范例  (1)

检查文件是否为 JPEG:

检查另一个文件:

检查文件是否可能是以下图像格式之一:

范围  (1)

检查网址是否可能是 PDF:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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