MathTop

right_string 函数

返回文本末尾的 count 个字符。

语法

  • StringTools:-Right(text, count)
  • right_string(text, count)
  • RightString(text, count)

参数与选项

text文本值,通常写在引号中。
count非负字符数量。

示例

  1. 右侧部分RightString('abcdef', 2)返回 ef。