だから私はcsvファイルで与えられた値で辞書を作成しています、そして今私はあなたがキーを入力する入力をしようとしています、そしてそれはそのキーの辞書をチェックしてそして値を返します。これを実装するのに問題がありますが、これは私が持っているものであり、d.get()を使用する必要があると思いますが、100%確実ではありません。
import csv
dictionary = []
line = 0
reader = csv.reader(open("all.csv", "rb"), delimiter = ",")
header = reader.next()
for column in reader:
line = line + 1
dictionary.append({column[0]:column[2]})
print dictionary
check = raw_input("Enter word in dictionary to get its value: ")
print dictionary.get(check, "This word doesnt exist in the dictionary")