fix minor code style

This commit is contained in:
Logen
2023-01-07 14:08:19 -06:00
parent d3bd157bb4
commit 9b07639364

View File

@ -442,7 +442,7 @@ class Solution:
while left <= right and s[left] == ' ': #去除开头的空格 while left <= right and s[left] == ' ': #去除开头的空格
left += 1 left += 1
while left <= right and s[right] == ' ': #去除结尾的空格 while left <= right and s[right] == ' ': #去除结尾的空格
right = right-1 right -= 1
tmp = [] tmp = []
while left <= right: #去除单词中间多余的空格 while left <= right: #去除单词中间多余的空格
if s[left] != ' ': if s[left] != ' ':