MathTop

is_punctuation 函数

判断文本中的每个字符是否都是标点符号。

语法

  • StringTools:-IsPunctuation(text)
  • IsPunctuation(text)
  • is_punctuation(text)

参数与选项

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

示例

  1. 全为标点StringTools:-IsPunctuation('!?')返回 true。