LeetCode-Python-186. 翻轉字符串裏的單詞 II

給定一個字符串,逐個翻轉字符串中的每一個單詞。函數 示例:工具 輸入: ["t","h","e"," ","s","k","y"," ","i","s"," ","b","l","u","e"] 輸出: ["b","l","u","e"," ","i","s"," ","s","k","y"," ","t","h","e"] 注意:code 單詞的定義是不包含空格的一系列字符 輸入字符串中不會包含
相關文章
相關標籤/搜索