MathTop

left_string 函数

返回文本开头的 count 个字符。

语法

  • StringTools:-Left(text, count)
  • left_string(text, count)
  • LeftString(text, count)

参数与选项

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

示例

  1. 左侧部分left_string('abcdef', 3)返回 abc。