strip lstrip rstrip 字符串里有三个去空格的函数 strip 同时去掉左右两边的空格 lstrip 去掉左边的空格 rstrip 去掉右边的空格 lang: python 12345678 >a=" gho stwwl ">a.lstrip() 'gho stwwl '>a.rstrip() ' gho stwwl'>a.strip() 'gho stwwl' 赞微海报分享
近期评论