Re: [閒聊] DC已回收

看板Marginalman作者 (搖滾少女!! 活力棉花糖!!)時間3年前 (2022/06/05 18:48), 3年前編輯推噓1(101)
留言2則, 2人參與, 3年前最新討論串24/49 (看更多)
95 + 6/05 kitune □ [瓦特] 日本人:到底都誰在說以… (Marginalman) 96 + 6/05 kitune R: [取暖] 和你們說我是怎麼從處女…(Marginalman) 97 + 6/05 kitune □ [瓦特] 日本人:既然你齁都倒了 …(Marginalman) 98 6/05 kitune □ [邊緣] 這到底是不是萬中選一的…(Marginalman) > 99 6/05 kitune □ [邊緣] 這到底是不是萬中選一的…(Marginalman) 一直在想哪裡寫錯= = 結果是ptt搜尋偶爾會出現這種同樣文章的情況 然後程式就會瘋狂輸出99那篇= = -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.243.144.152 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1654426096.A.36A.html

06/05 18:48, 3年前 , 1F
不是偵測aidㄛ
06/05 18:48, 1F
是啊 我程式碼是這樣 == index = allpost.author總文章數 For(index): if(index!=0 and index.aid==latest_aid) 新增文章到DC...... == 但是當index==1 指在98那篇也符合條件 就會把99那篇當成新的 就也再次新增文章 更改後 ======== For(index): if(index==0 and index.aid==latest_aid) continue if(index!=0 and index.aid==latest_aid) 新增文章到DC...... ======= 現在只要最新文章一樣就跳出 不確定這樣手打有沒有說清楚

06/05 18:48, 3年前 , 2F
文章代碼放dictionary
06/05 18:48, 2F
※ 編輯: surimodo (111.243.144.152 臺灣), 06/05/2022 18:57:13 ※ 編輯: surimodo (111.243.144.152 臺灣), 06/05/2022 18:58:41
文章代碼(AID): #1Yd8dmDg (Marginalman)
討論串 (同標題文章)
完整討論串 (本文為第 24 之 49 篇):
閒聊
0
5
閒聊
2
3
閒聊
7
11
閒聊
閒聊
閒聊
5
13
閒聊
2
6
文章代碼(AID): #1Yd8dmDg (Marginalman)