Tupels are 'hashable' objects and hence can be used as a key in python dictionaries. ... newdict = dict((d[k].get('place', 'NaN'), k) for k in d.keys()).
確定! 回上一頁