>>> a = {"1":"WuWei"}
>>> name = a.pop('2', [])
>>> name
[]
>>> name = a.pop('2')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: '2'
>>> name = a.pop('1')
>>> name
'WuWei'
>>> a
{}
pop(...)
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised