언어/python cheatsheet

remove key from dictionary if exists, else return None

nanon 2019. 10. 23. 14:02

dict.pop(key, None)