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