headers={ 'openid':'12313' } openId = headers.get('openid') headers.pop('openid') headers.update({'openId':openId}) print(headers)