Python3 字符串操作 截掉指定字符串 # 截掉指定字符串 string.strip("what you want to delete") #截掉字符串左边的空格 string.lstrip() #截掉字符串右边的空格 string.rstrip()