python独学 辞書を更新する方法 atarundesukoryaku 2019年10月6日 辞書を更新する方法 fruits={“apple”:”red”,”lemon”:”yellow”} fruits[“apple”]=”blue” 辞書のキー名を指定して、要素を代入すると更新できる。