次のような文字列のリストが与えられた場合:
a_list_of_keys = ['a key', 'heres another', 'oh hey a key']
ネストされた一連のキーを dict から取得する方法は何ですか
the_value_i_want = some_dict['a key']['heres another']['oh hey a key']
次のような文字列のリストが与えられた場合:
a_list_of_keys = ['a key', 'heres another', 'oh hey a key']
ネストされた一連のキーを dict から取得する方法は何ですか
the_value_i_want = some_dict['a key']['heres another']['oh hey a key']