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

str = " ai lafu yo    ";
str = trim(str);
输出的将是"ai lafu yo"
posted @ 2016-06-01 11:03  R_Oasis  阅读(620)  评论(0编辑  收藏  举报