3 ms·
You can use the dictionary method "get" and default it to None. http://docs.python.org/library/stdtypes.html#dict.get http://docs.python.org/library/stdtypes.h
by muyuu 16y ago
You can use the dictionary method "get" and default it to None.
http://docs.python.org/library/stdtypes.html#dict.get http://docs.python.org/library/stdtypes.html#dict.get