MathTop

chomp_string 函数

删除文本末尾的换行字符。

语法

  • Chomp(text)
  • chomp_string(text)

参数与选项

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

示例

  1. 删除行尾Chomp('line\n')返回 line。