Re: [閒聊] DC已回收
看板Marginalman作者surimodo (搖滾少女!! 活力棉花糖!!)時間3年前 (2022/06/05 18:48)推噓1(1推 0噓 1→)留言2則, 2人參與討論串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
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
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
討論串 (同標題文章)