From 750a554868071de72956dc83fb38c2eb2bac3012 Mon Sep 17 00:00:00 2001 From: KiteMoon Date: Tue, 14 May 2024 11:03:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=98=E9=87=8F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bilibili.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bilibili.py b/bilibili.py index e1b874b..4b30219 100644 --- a/bilibili.py +++ b/bilibili.py @@ -40,9 +40,13 @@ for _bilibili_video_name,_bilibili_video_play_num in zip(titlelsit,playlist): _bilibili_video_nameAndnum=[_bilibili_video_name,_bilibili_video_play_num] bilibili_all_list.append(_bilibili_video_nameAndnum) print(bilibili_all_list) -ccc = "" -for _target_id in bilibili_all_list: - ccc = ccc +str(_target_id) +"\n" +# kitemoon 修改不合理的变量名 +topList = "" +for target_id in bilibili_all_list: + topList = topList +str(target_id) +"\n" f = open("./魔女.txt","w",encoding="utf-8") f.write(ccc) f.close() + + + -- Gitee