SI
Size: a a a
SI
%
SI
%
БГ
def fking_key(dicc, keys=[]):
val = dicc.get(keys[0])
if val == None:
return None
if keys == []:
return val
return fking_key(val, keys[1:]
dict.get(key, {})
, лол?БГ
d.get('dd', {}).get('vv', {}).get('rr', {}).get('dd', None)
def get_value_by_chain(d:dict, chain:list):
for key in chain:
_d = d.get(key, None)
if isinstance(_d, dict):
d = _d
else:
return d
БГ
SI
d.get('dd', {}).get('vv', {}).get('rr', {}).get('dd', None)
def get_value_by_chain(d:dict, chain:list):
for key in chain:
_d = d.get(key, None)
if isinstance(_d, dict):
d = _d
else:
return d
БГ
SI
AT
V
d.get('dd', {}).get('vv', {}).get('rr', {}).get('dd', None)
def get_value_by_chain(d:dict, chain:list):
for key in chain:
_d = d.get(key, None)
if isinstance(_d, dict):
d = _d
else:
return d
БГ
V
MO
MO
MT
MO
MT
MO