You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import pandas as pd
|
|
|
|
def save_danmaku(danmaku_list, video_id):
|
|
df = pd.DataFrame({'视频 ID': [video_id] * len(danmaku_list), '弹幕': danmaku_list})
|
|
df.to_csv('bilibili_danmaku.csv', mode='a', encoding='utf-8', index=False, header=False) |