diff --git a/saveasexcel.py b/saveasexcel.py new file mode 100644 index 0000000..437e7c8 --- /dev/null +++ b/saveasexcel.py @@ -0,0 +1,12 @@ +import pandas as pd +#将爬到的弹幕数据写入[]中 +content_list = [ + +] +# 将数据写入工作表 +df = pd.DataFrame() +df["弹幕列表"] = content_list +print(df) + +# 保存工作簿到文件 +df.to_excel("弹幕4.xlsx",index=False) \ No newline at end of file