标签: python删除

后浪云Python教程:python删除str中特定字符的方法

1、删除字符串首尾的多余字符串strip() # 删除字符串中多余字符 def string_remove():    str1 = ' abc  ……