is_punctuation 函数
判断文本中的每个字符是否都是标点符号。
语法
StringTools:-IsPunctuation(text)IsPunctuation(text)is_punctuation(text)
参数与选项
text | 文本值,通常写在引号中。 |
|---|
示例
- 全为标点
StringTools:-IsPunctuation('!?')返回 true。
判断文本中的每个字符是否都是标点符号。
StringTools:-IsPunctuation(text)IsPunctuation(text)is_punctuation(text)text | 文本值,通常写在引号中。 |
|---|
StringTools:-IsPunctuation('!?')返回 true。