Код: Выделить всё
b64_clientid_secret = 'foo'
get_auth_hdr = {'Authorization: Basic ': b64_clientid_secret}
ct_hdr = {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'}
get_auth_hdr.update(ct_hdr)
all_hdrs = get_auth_hdr
print(all_hdrs)
# {'Authorization: Basic ': 'foo', 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'}
Есть ли функция, которая объединяет словари и возвращает словарь?
Подробнее здесь: https://stackoverflow.com/questions/790 ... ctionaries
Мобильная версия