|
|
@ -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')
|
|
|
|