This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
"""
说明:主程序
from bullet_screen import get_bullet_screen
from bv_maker import get_bv, BV_NUM
from word_cloud import make_word_cloud
if __name__ == '__main__':
bv_list = get_bv(BV_NUM)
bullet_screen_list = get_bullet_screen(bv_list)
try: #异常处理,防止没有AI应用相关弹幕造成的ValueError
make_word_cloud(bullet_screen_list)
except ValueError as e:
print("没有任何AI应用相关的弹幕")