【学习总结】Python-3-字符串函数-strip()方法

参考:

语法:

  • str.strip([chars]);

  • 参数:

    • chars -- 移除字符串头尾指定的字符序列。

  • 返回值:

    • 返回移除字符串头尾指定的字符序列生成的新字符串。

END

猜你喜欢

转载自www.cnblogs.com/anliux/p/10919270.html