python中str的.strip() .lstrip() .rstrip()方法比较 str.strip()就是将头尾空格去掉(中间空格保留) lstrip()只需要删除头空格和rstrip()只需要删除尾空格