python-去除去除字符串首尾的字符strip()

# for title in titles: # print title.strip() #Python strip() 方法用于移除字符串头尾指定的字符(默认为空格)。 strip()方法语法:python str.strip([chars]); chars -- 移除字符串头尾指定的字符。 返回移除字符串头尾指定的字符生成的新字符串。 str = "0000000 Runo
相关文章
相关标签/搜索