Commit 4e66c434 authored by 张彦钊's avatar 张彦钊

change tets

parent 0938e8c6
......@@ -28,8 +28,10 @@ def get_user_profile():
tags[i["content"]] = i["score"]
tags = sorted(tags.items(), key=lambda x: x[1], reverse=True)
tag_score = {}
a = tags.keys()
print(a)
if len(tmp) > 5:
for i in list(tags.keys())[:5]:
for i in list(a)[:5]:
tag_score[i] = tags[i]
print(tag_score)
return tag_score
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment