添加结果排序

This commit is contained in:
Jing Ling
2020-09-10 00:20:01 +08:00
parent 634eb9adf2
commit 499826bb72
2 changed files with 7 additions and 1 deletions
+4
View File
@@ -723,3 +723,7 @@ def decode_resp_text(resp):
# 最后尝试自动解码
content = str(content, errors='replace')
return content
def sort_by_subdomain(data):
return sorted(data, key=lambda item: item.get('subdomain'))