has_punctuation 函数
判断文本是否包含标点符号。
语法
StringTools:-HasPunctuation(text)HasPunctuation(text)has_punctuation(text)
参数与选项
text | 文本值,通常写在引号中。 |
|---|
示例
- 包含标点
StringTools:-HasPunctuation('abc!')返回 true。
判断文本是否包含标点符号。
StringTools:-HasPunctuation(text)HasPunctuation(text)has_punctuation(text)text | 文本值,通常写在引号中。 |
|---|
StringTools:-HasPunctuation('abc!')返回 true。