我想知道是否有更好的方法来放置:
if word==wordList[0] or word==wordList[2] or word==wordList[3] or word==worldList[4]
word in wordList
或者,如果您想先检查 4,
word in wordList[:4]