Created
May 18, 2018 07:24
-
-
Save yonoho/edd0e50321e6274c0c6c67ac659a3ac2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mans_agreements = {} # 假设 agreement 比较大 | |
for a in agreement: | |
mans_agreements.setdefault(a['agent_name'], []) | |
mans_agreements[a['agent_name']].append(a) | |
for man in agentman: | |
his_agreements = mans_agreements.get(man['agent_name'], []) | |
for a in his_agreements: | |
print(dict(man, **a)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment