跳转到内容

rstrip

string  rstrip(string value)

string  rstrip(string value, string whitespace)

返回移除末尾空白字符后的字符串。如果指定了whitespace参数,则移除该字符串中指定的字符。