悄悄话模拟评论:主评论只用孕 24 周以上人设;AGENTS.md 12c 登记
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,11 @@ P = 'guangchang/cm.json'
|
||||
d = json.load(open(P, encoding='utf-8'))
|
||||
used = Counter(c[0] for k, L in d['c'].items() if k != TARGET for c in L)
|
||||
rnd = random.Random(20261107)
|
||||
preg = sorted([i for i, p in enumerate(d['p']) if p[2].startswith('孕')], key=lambda i: (used[i], i))
|
||||
import re
|
||||
def wk(p):
|
||||
m = re.match(r'孕 ?(\d+)', p[2]); return int(m.group(1)) if m else 0
|
||||
# 内容多是胎动、产检、待产(孕中晚期的事)→ 主评论只用孕 24 周以上的人设,免得「孕 6 周」说「头朝下了」
|
||||
preg = sorted([i for i, p in enumerate(d['p']) if wk(p) >= 24], key=lambda i: (used[i], i))
|
||||
anyp = sorted(range(len(d['p'])), key=lambda i: (used[i], i))
|
||||
mains = preg[:200]; rnd.shuffle(mains)
|
||||
reps = anyp[:300]; rnd.shuffle(reps)
|
||||
|
||||
Reference in New Issue
Block a user