Update 关键词检测.py

main
ptlwmhjs9 2 months ago
parent abbc2a9906
commit 7543605720

@ -41,6 +41,6 @@ with open('AI弹幕.txt', 'w', encoding='utf-8') as f:
for line, count in most_common_lines: for line, count in most_common_lines:
f.write(f'{line}: {count}\n') f.write(f'{line}: {count}\n')
print(f"{line}: {count}") print(f"{line}: {count}")
with open('AI弹幕(生成词云图用).txt', 'w', encoding='utf-8') as f: with open('AI弹幕·生成词云图用.txt', 'w', encoding='utf-8') as f:
for line, count in most_common_lines: for line, count in most_common_lines:
f.write(f'{line}\n') f.write(f'{line}\n')

Loading…
Cancel
Save