From a5112d0a30dd9a75911267b63a785923e3adddbd Mon Sep 17 00:00:00 2001 From: pkjq8ohf2 <2100488276@qq.com> Date: Tue, 17 Sep 2024 14:04:17 +0800 Subject: [PATCH] ADD file via upload --- saveasexcel.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 saveasexcel.py 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