话题预测界面
This commit is contained in:
@@ -23,9 +23,10 @@ def main():
|
||||
|
||||
# 格式整理
|
||||
list_count = sorted(word_count.items(),key=lambda x:x[1],reverse=True)
|
||||
|
||||
# list_count = [[key, str(value)] for key, value in list_count]
|
||||
# return list_count
|
||||
for i in range(100):
|
||||
print(list_count[i],file=result)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
print(main())
|
||||
Reference in New Issue
Block a user