python .strip()

mac2022-06-30  27

s=' abcd '

s.lstrip()

s.rstrip()

s.strip()

  只能去除两边的空格或者‘\n’

转载于:https://www.cnblogs.com/ezway/p/6350163.html

最新回复(0)