string函数strip 去掉首尾格式控制字符,还有lstrip和rstrip,括号里可以加自己想去掉的字符。 转载于:https://www.cnblogs.com/huashiyiqike/p/3256409.html