标签: strip()函数

后浪云Python教程:python strip()函数介绍

描述 Python strip() 方法用于移除字符串头尾指定的字符(默认为空格)。 语法 strip()方法语法: str.strip([chars]); 参数 chars -- 移除字符串头尾指定的……