去掉字符序列左边和右边的空格 trim()

str = " ai lafu yo    ";
str = trim(str);
输出的将是"ai lafu yo"
原文地址:https://www.cnblogs.com/renpei/p/5548888.html