strip()

strip()

简介:

移除字符串 首尾 指定字符/片段

语法:

str.strip('char')

参数:

'char': 指定的字符或者片段

 

posted @ 2022-06-26 17:58  大序列  阅读(3)  评论(0编辑  收藏  举报