檢查字串d是否存在列表中: wordlist = ["a","b","cde"] word = "d" for str in wordlist: if word in str: print(str + " contains: " + word).
確定! 回上一頁