DigitQ

DigitQ[string]

用来判断该字符串中的所有字符是否是0到9的数字,若是则返回 True,否则返回 False.

范例

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

基本范例  (1)

测试字符是否是一个数字:

范围  (1)

测试字符串中所有字符是否是数字:

属性和关系  (1)

只有普通的数字字符被视为数字:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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