StringQ

StringQ[expr]

expr 是字符串,得到 True,否则得到 False.

范例

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

基本范例  (2)

测试 "123" 是否为字符串:

选取列表中所有字符串:

范围  (2)

StringQ含字体信息:

StringQ含特殊字符:

属性和关系  (3)

所有字符串的头部均为 String

ToString 将表达式转换为字符串:

StringMatchQ 检测字符串模板是否匹配字符:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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