python def sort_words(word_counts): # 对单词进行字母顺序排序 sorted_words = sorted(word_counts.items(), key=lambda item: item[0]) return sorted_words 3. 输出排序后的单词列表及其个数 最后,我们将排序后的单词列表及其个数进行输出。 python def print_sorted_word_counts(sorted_words): for wo...