-1
我不太确定为什么这会返回None,它在我尝试将它放入函数之前完美运行。它应该返回一个6到9个字符长的单词列表。我的函数返回无,Python 3
def level_list(minn, maxx):
for words in word_list:
if len(words) >= minn and len(words) <= maxx:
return level_words.append(words)
print(level_list(6, 9))