mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-09 03:34:02 +08:00
update problem/151.md format
This commit is contained in:
@ -474,6 +474,7 @@ class Solution:
|
|||||||
words = s.split() #type(words) --- list
|
words = s.split() #type(words) --- list
|
||||||
words = words[::-1] # 反转单词
|
words = words[::-1] # 反转单词
|
||||||
return ' '.join(words) #列表转换成字符串
|
return ' '.join(words) #列表转换成字符串
|
||||||
|
```
|
||||||
|
|
||||||
### Go:
|
### Go:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user