티스토리 뷰

공부

[Python] map(dict) put

seunggabi 승가비 2020. 6. 27. 22:17
d = {}
d['mynewkey'] = 'mynewvalue'

https://stackoverflow.com/questions/1024847/how-can-i-add-new-keys-to-a-dictionary

 

How can I add new keys to a dictionary?

Is it possible to add a key to a Python dictionary after it has been created? It doesn't seem to have an .add() method.

stackoverflow.com

 

댓글
댓글쓰기 폼