MathTop

has_punctuation 函数

判断文本是否包含标点符号。

语法

  • StringTools:-HasPunctuation(text)
  • HasPunctuation(text)
  • has_punctuation(text)

参数与选项

text文本值,通常写在引号中。

示例

  1. 包含标点StringTools:-HasPunctuation('abc!')返回 true。