题目 解法1: 同时sort单词长度和index class Solution: def arrangeWords(self, text: str) -> str: text = text.split(