ADD file via upload

main
py6qo2c5g 2 months ago
parent 89fb798830
commit c03630a565

@ -0,0 +1,8 @@
import pandas as pd
def write_to_excel(count_dict):
data = {'关键词': list(count_dict.keys()), '数量': list(count_dict.values())}
df = pd.DataFrame(data)
df = df.sort_values(by='数量', ascending=False)
df.to_excel('danmaku_count.xlsx', index=False)
Loading…
Cancel
Save