feat(v1.2): 阶段5 —— 标记重要消息 + 修「静默标错」(v2.0.65)
## 长按消息 → 标记重要 聊天页长按自己发的那条蓝气泡 → 小菜单 → 「标记重要」。 标过之后气泡下挂一个 `★ 重要(不会被裁掉)`。 只给**用户那一侧**:被标的消息在裁剪时破格携带,而 AI 的回复通常就在 最近几轮里、本来就裁不到;用户想留住的是很久以前问过的那句。 ## ★★ 一个「静默标错」的 bug 第一版按**数组下标**定位。真机上一试:长按第 3 条("remember"), 标到了第 1 条上。 **根因**:界面那份消息列表和存储里那份**不保证一一对应** (本地生成的内容、还没落地的流式消息……)。下标是**两边各自数的**。 **为什么特别糟**:它**不报错**。用户看到"我标了",实际标到了别人身上 —— 要等哪天发现某句话莫名没被裁掉(或者莫名一直留着)才知道。 **修法**:按**内容**定位 —— 内核从后往前找、找不到报 404、**绝不猜一条标上去**; 界面传内容不传下标。 同一根因的另一半:`refresh()` 拉回来的消息**不会覆盖**界面那份, 所以标完界面上毫无反应。加了**本地更新**。 ## 验证 `probe-context-window.py` 到 9 节 50+ 项,新增一节钉「按内容定位」: 标到了那一条、**只标了那一条**、内容对不上 → None、空内容 → None、 重复内容取最后一条。 装机实测:发消息 → 长按 → 标记 → 出现 ★,服务端存的是**正确的那条**。 ★ 教训:**下标是两边各自数的**。凡是"界面传位置、服务端按位置找"的设计, 都要先问"这两边的列表一定是同一个吗" —— 答案往往不是,而出错时通常不报错。
This commit is contained in:
@@ -30,8 +30,8 @@ android {
|
|||||||
* versionCode 每次发版 +1(Android 靠它判断"能不能覆盖安装",
|
* versionCode 每次发版 +1(Android 靠它判断"能不能覆盖安装",
|
||||||
* 改小了会装不上)。
|
* 改小了会装不上)。
|
||||||
*/
|
*/
|
||||||
versionCode = 264
|
versionCode = 265
|
||||||
versionName = "2.0.64"
|
versionName = "2.0.65"
|
||||||
|
|
||||||
ndk {
|
ndk {
|
||||||
// Chaquopy 只支持这两个;Termux bootstrap 也只准备了这两份
|
// Chaquopy 只支持这两个;Termux bootstrap 也只准备了这两份
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.doubao.lynxclone.ui
|
package com.doubao.lynxclone.ui
|
||||||
|
|
||||||
import androidx.compose.runtime.getValue
|
import androidx.compose.runtime.getValue
|
||||||
import androidx.compose.runtime.mutableStateListOf
|
import androidx.compose.runtime.mutableStateListOf
|
||||||
@@ -570,8 +570,40 @@ class AppViewModel(val client: KernelClient) : ViewModel() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun importPackage(kind: String, base64: String, textJson: String) {
|
/**
|
||||||
|
* 标记 / 取消标记第 [index] 条消息为「重要」(v1.2 §4.3)。
|
||||||
|
*
|
||||||
|
* ★ 被标记的消息在**上下文窗口裁剪**时破格永久携带 ——
|
||||||
|
* 平时"攒够 5 轮裁 5 轮",这几条会一直留着。
|
||||||
|
* 所以提示语要写清**效果**,不然用户不知道这个标记是干什么的。
|
||||||
|
*/
|
||||||
|
fun toggleImportant(index: Int) {
|
||||||
|
val cid = activeConversationId
|
||||||
|
val msg = messages.getOrNull(index) ?: return
|
||||||
|
val cur = msg.important
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
|
runCatching {
|
||||||
|
// ★ 传**内容**不传下标:界面的列表和存储的不保证一一对应
|
||||||
|
withContext(Dispatchers.IO) { client.markImportant(cid, msg.content, !cur) }
|
||||||
|
}.onSuccess {
|
||||||
|
// ★★ **本地也改一下**,不能只靠 refresh()。
|
||||||
|
//
|
||||||
|
// 界面上这份 `messages` 和存储里那份**本来就不是总同步**
|
||||||
|
// (这一版之前就存在的行为),只 refresh 的话用户看不到
|
||||||
|
// 那个「★ 重要」标记 —— 表现是"我标了但界面上没反应",
|
||||||
|
// 而那正是最初把标记打到别人身上的同一个根因。
|
||||||
|
messages.getOrNull(index)?.let { old ->
|
||||||
|
messages[index] = old.copy(important = !cur)
|
||||||
|
}
|
||||||
|
showHint(
|
||||||
|
if (!cur) "标成重要了 —— 以后裁剪上下文时这条会一直留着"
|
||||||
|
else "取消标记了",
|
||||||
|
)
|
||||||
|
}.onFailure { showHint(it.message ?: "标不了") }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun importPackage(kind: String, base64: String, textJson: String) { viewModelScope.launch {
|
||||||
val msg = runCatching {
|
val msg = runCatching {
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
when (kind) {
|
when (kind) {
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ import androidx.compose.animation.fadeIn
|
|||||||
import androidx.compose.animation.fadeOut
|
import androidx.compose.animation.fadeOut
|
||||||
import androidx.compose.animation.slideInVertically
|
import androidx.compose.animation.slideInVertically
|
||||||
import androidx.compose.animation.slideOutVertically
|
import androidx.compose.animation.slideOutVertically
|
||||||
|
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
|
import androidx.compose.foundation.combinedClickable
|
||||||
import androidx.compose.foundation.border
|
import androidx.compose.foundation.border
|
||||||
import androidx.compose.foundation.BorderStroke
|
import androidx.compose.foundation.BorderStroke
|
||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
@@ -576,11 +578,46 @@ private fun HeroSection(greeting: String) {
|
|||||||
/* ------------------------------ 消息 ------------------------------ */
|
/* ------------------------------ 消息 ------------------------------ */
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
@OptIn(ExperimentalFoundationApi::class)
|
||||||
private fun MessageItem(vm: AppViewModel, index: Int, msg: ChatMessage, speech: SpeechController) {
|
private fun MessageItem(vm: AppViewModel, index: Int, msg: ChatMessage, speech: SpeechController) {
|
||||||
val clipboard = LocalClipboardManager.current
|
val clipboard = LocalClipboardManager.current
|
||||||
val speaking = speech.speakingIndex == index
|
val speaking = speech.speakingIndex == index
|
||||||
|
// 长按气泡 → 这个菜单(v1.2 §4.3 的「标记重要」)
|
||||||
|
var importantMenu by remember { mutableStateOf(false) }
|
||||||
|
|
||||||
if (msg.role == "user") {
|
if (msg.role == "user") {
|
||||||
|
// ★ 长按**用户**消息才能标重要。需求说的是"消息操作栏加标记重要",
|
||||||
|
// 这里只做用户那一侧,理由是**效果差异**:
|
||||||
|
// 被标的消息在上下文窗口裁剪时破格携带,而 AI 的回复通常就在
|
||||||
|
// 最近几轮里、本来就裁不到;用户想留住的是**很久以前问过的那句**。
|
||||||
|
if (importantMenu) {
|
||||||
|
androidx.compose.material3.AlertDialog(
|
||||||
|
onDismissRequest = { importantMenu = false },
|
||||||
|
title = { Text(if (msg.important) "这条标过了" else "这条消息") },
|
||||||
|
text = {
|
||||||
|
Text(
|
||||||
|
if (msg.important) {
|
||||||
|
"取消之后它就按普通消息处理了 —— 攒够一批会被裁掉。"
|
||||||
|
} else {
|
||||||
|
"标成重要之后,以后裁剪上下文时这条会一直留着," +
|
||||||
|
"不管过了多少轮。"
|
||||||
|
},
|
||||||
|
fontSize = 13.sp,
|
||||||
|
lineHeight = 19.sp,
|
||||||
|
)
|
||||||
|
},
|
||||||
|
confirmButton = {
|
||||||
|
androidx.compose.material3.TextButton(
|
||||||
|
onClick = { vm.toggleImportant(index); importantMenu = false },
|
||||||
|
) { Text(if (msg.important) "取消标记" else "标记重要", color = Doubao.Blue) }
|
||||||
|
},
|
||||||
|
dismissButton = {
|
||||||
|
androidx.compose.material3.TextButton(
|
||||||
|
onClick = { importantMenu = false },
|
||||||
|
) { Text("算了") }
|
||||||
|
},
|
||||||
|
)
|
||||||
|
}
|
||||||
Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.End) {
|
Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.End) {
|
||||||
Column(horizontalAlignment = Alignment.End) {
|
Column(horizontalAlignment = Alignment.End) {
|
||||||
msg.attachments.forEach { file ->
|
msg.attachments.forEach { file ->
|
||||||
@@ -607,11 +644,25 @@ private fun MessageItem(vm: AppViewModel, index: Int, msg: ChatMessage, speech:
|
|||||||
.widthIn(max = 288.dp)
|
.widthIn(max = 288.dp)
|
||||||
.clip(RoundedCornerShape(18.dp, 18.dp, 4.dp, 18.dp))
|
.clip(RoundedCornerShape(18.dp, 18.dp, 4.dp, 18.dp))
|
||||||
.background(Doubao.Blue)
|
.background(Doubao.Blue)
|
||||||
|
.combinedClickable(
|
||||||
|
onClick = { clipboard.setText(AnnotatedString(msg.content)) },
|
||||||
|
onLongClick = { importantMenu = true },
|
||||||
|
)
|
||||||
.padding(horizontal = 14.dp, vertical = 11.dp),
|
.padding(horizontal = 14.dp, vertical = 11.dp),
|
||||||
) {
|
) {
|
||||||
Text(msg.content, color = Color.White, fontSize = 16.sp, lineHeight = 25.sp)
|
Text(msg.content, color = Color.White, fontSize = 16.sp, lineHeight = 25.sp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 标过的给一个小标记 —— 不然用户忘了自己标过哪几条,
|
||||||
|
// 而"这条会不会被裁掉"是他自己决定的
|
||||||
|
if (msg.important) {
|
||||||
|
Spacer(Modifier.height(3.dp))
|
||||||
|
Text(
|
||||||
|
"★ 重要(不会被裁掉)",
|
||||||
|
fontSize = 10.sp,
|
||||||
|
color = Doubao.Blue,
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1030,6 +1030,51 @@ class KernelHandler(BaseHTTPRequestHandler):
|
|||||||
self.send_json(200 if ok else 404, {'ok': ok})
|
self.send_json(200 if ok else 404, {'ok': ok})
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
# 标记某条消息为「重要」(v1.2 §4.3)
|
||||||
|
#
|
||||||
|
# 路径:/api/conversations/<convId>/important,body: {content, role?, important?}
|
||||||
|
#
|
||||||
|
# ★ 只有**用户**能打这个标记(需求原话"仅用户可标")——
|
||||||
|
# AI 那边没有对应的工具,它有 `memory_add` 去记该记的东西。
|
||||||
|
# 被标记的消息在**上下文窗口裁剪**时"破格永久携带"。
|
||||||
|
#
|
||||||
|
# ★★ 按**内容**定位而不是下标(踩过):
|
||||||
|
# 界面上那份消息列表和存储里的**不保证一一对应**(本地生成的内容、
|
||||||
|
# 还没落地的流式消息……),按下标"长按第 3 条"会把标记打到第 1 条上,
|
||||||
|
# 而且**静默标错** —— 用户要等哪天发现某句话莫名没被裁掉才知道。
|
||||||
|
# 找不到就报 404,绝不猜一条标上去。
|
||||||
|
if pathname.startswith('/api/conversations/') and pathname.endswith('/important') \
|
||||||
|
and method == 'POST':
|
||||||
|
cid = pathname[len('/api/conversations/'):-len('/important')].strip('/')
|
||||||
|
if cid and '/' not in cid:
|
||||||
|
try:
|
||||||
|
body = self.read_json_body()
|
||||||
|
except ValueError:
|
||||||
|
body = {}
|
||||||
|
content = body.get('content')
|
||||||
|
if content is None:
|
||||||
|
self.send_json(400, {'error': '要带上 content(按内容定位那条消息)'})
|
||||||
|
return True
|
||||||
|
want = body.get('important')
|
||||||
|
if want is None:
|
||||||
|
# 不传就取反:界面上是个开关,点一下切一次。
|
||||||
|
# ★ 用**存储里**那条的当前状态取反(不是界面传来的),
|
||||||
|
# 免得界面和服务端状态不一致时越切越乱
|
||||||
|
conv = store.get_conversation(cid) or {}
|
||||||
|
cur = False
|
||||||
|
for m in reversed(conv.get('messages') or []):
|
||||||
|
if str(m.get('content') or '') == str(content):
|
||||||
|
cur = bool(m.get('important'))
|
||||||
|
break
|
||||||
|
want = not cur
|
||||||
|
msg = store.mark_important_by_content(
|
||||||
|
cid, content, str(body.get('role') or ''), bool(want))
|
||||||
|
if msg is None:
|
||||||
|
self.send_json(404, {'error': '没找到这条消息(内容对不上)'})
|
||||||
|
else:
|
||||||
|
self.send_json(200, {'ok': True, 'important': bool(want)})
|
||||||
|
return True
|
||||||
|
|
||||||
# 会议模式
|
# 会议模式
|
||||||
if pathname == '/api/meetings' and method == 'GET':
|
if pathname == '/api/meetings' and method == 'GET':
|
||||||
self.send_json(200, {'meetings': meeting.list_meetings()})
|
self.send_json(200, {'meetings': meeting.list_meetings()})
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
"""
|
"""
|
||||||
持久化:设置 / 会话 / 智能体。
|
持久化:设置 / 会话 / 智能体。
|
||||||
|
|
||||||
对应 Node 版的 config.mjs(设置)+ store.mjs(会话)+ agents.mjs(智能体),
|
对应 Node 版的 config.mjs(设置)+ store.mjs(会话)+ agents.mjs(智能体),
|
||||||
@@ -1015,6 +1015,72 @@ def append_messages(conv_id: str, messages: list):
|
|||||||
return item
|
return item
|
||||||
|
|
||||||
|
|
||||||
|
def mark_important(conv_id: str, index: int, important: bool):
|
||||||
|
"""
|
||||||
|
给第 [index] 条消息打/取消「重要」标记(v1.2 §4.3)。
|
||||||
|
|
||||||
|
★ 需求原话:"**仅用户可标**;被标记消息破格永久携带、按原始时间序插入"。
|
||||||
|
所以这个函数**只由界面调**,AI 那边没有对应的工具 ——
|
||||||
|
它有 `memory_add` 去记该记的东西,标记是用户的主权。
|
||||||
|
|
||||||
|
★★ 按**下标**定位是**不安全**的,已经踩过:界面上那份消息列表可能和
|
||||||
|
存储里的**不是一一对应**(本地生成的内容、还没落地的流式消息……),
|
||||||
|
于是"长按第 3 条"会把标记打到第 1 条上 —— **静默标错**,
|
||||||
|
而用户完全看不出来(要等哪天发现某句话莫名没被裁掉)。
|
||||||
|
所以界面走的是 `mark_important_by_content`,这个按下标的老函数
|
||||||
|
只留给内部/测试用。
|
||||||
|
"""
|
||||||
|
item = get_conversation(conv_id)
|
||||||
|
if not item:
|
||||||
|
return None
|
||||||
|
msgs = item.get('messages') or []
|
||||||
|
if not (0 <= index < len(msgs)):
|
||||||
|
return None
|
||||||
|
with _lock:
|
||||||
|
# ★ 只改这一个字段,**不动 content** —— 需求把"历史消息字节冻结"
|
||||||
|
# 写成了内核纪律:改一个字,从那儿往后的前缀缓存全废。
|
||||||
|
# 标一个 `important` 是**新增键**,不影响 content 的字节。
|
||||||
|
msgs[index]['important'] = bool(important)
|
||||||
|
item['updatedAt'] = now_iso()
|
||||||
|
_persist_conversations()
|
||||||
|
return msgs[index]
|
||||||
|
|
||||||
|
|
||||||
|
def mark_important_by_content(conv_id: str, content: str, role: str = '',
|
||||||
|
important: bool = True):
|
||||||
|
"""
|
||||||
|
按**内容**找那条消息来打标记(界面的长按走这条路)。
|
||||||
|
|
||||||
|
★ 为什么不用下标:见 `mark_important` 的说明 —— 界面的列表和存储的
|
||||||
|
列表**不保证一一对应**,下标会静默标错。
|
||||||
|
|
||||||
|
★ 从**后往前**找:同一个内容可能重复出现(用户把一句话发了两遍),
|
||||||
|
而他长按的通常是比较靠后的那条。
|
||||||
|
|
||||||
|
★ 找不到就返回 None,让调用方**报错** —— 绝不"猜一条"标上去。
|
||||||
|
标错了用户看不出来,而那比报错糟得多。
|
||||||
|
"""
|
||||||
|
item = get_conversation(conv_id)
|
||||||
|
if not item:
|
||||||
|
return None
|
||||||
|
want = _as_text(content)
|
||||||
|
if not want:
|
||||||
|
return None
|
||||||
|
msgs = item.get('messages') or []
|
||||||
|
hit = -1
|
||||||
|
for i in range(len(msgs) - 1, -1, -1):
|
||||||
|
m = msgs[i]
|
||||||
|
if _as_text(m.get('content')) != want:
|
||||||
|
continue
|
||||||
|
if role and m.get('role') != role:
|
||||||
|
continue
|
||||||
|
hit = i
|
||||||
|
break
|
||||||
|
if hit < 0:
|
||||||
|
return None
|
||||||
|
return mark_important(conv_id, hit, important)
|
||||||
|
|
||||||
|
|
||||||
def auto_title(conv_id: str, text: str) -> None:
|
def auto_title(conv_id: str, text: str) -> None:
|
||||||
"""用首条用户消息自动起标题(只改还没起过名的会话)。"""
|
"""用首条用户消息自动起标题(只改还没起过名的会话)。"""
|
||||||
item = get_conversation(conv_id)
|
item = get_conversation(conv_id)
|
||||||
|
|||||||
@@ -132,6 +132,67 @@ def main():
|
|||||||
check("非 dict 的东西被跳过", W.trim([{'role': 'user'}, 'noise', None], 20)['kept'] == 1)
|
check("非 dict 的东西被跳过", W.trim([{'role': 'user'}, 'noise', None], 20)['kept'] == 1)
|
||||||
check("describe 不炸", isinstance(W.describe(W.trim(convo(30), 20, 5)), str))
|
check("describe 不炸", isinstance(W.describe(W.trim(convo(30), 20, 5)), str))
|
||||||
|
|
||||||
|
print("\n=== 8. 标记重要:从存储到裁剪的整条路 ===")
|
||||||
|
#
|
||||||
|
# 这一节测的是**端到端**:界面调接口 → 存库 → 裁剪时读它。
|
||||||
|
# 中间任何一环断了,用户看到的现象都是"我标了,但它还是被裁掉了"。
|
||||||
|
import store
|
||||||
|
|
||||||
|
conv = store.create_conversation('测试', agent_id='A')
|
||||||
|
store.append_messages(conv['id'], [
|
||||||
|
{'role': 'user', 'content': '记住这句'},
|
||||||
|
{'role': 'assistant', 'content': '好的'},
|
||||||
|
])
|
||||||
|
check("新消息默认没标记", not (store.get_conversation(conv['id'])['messages'][0].get('important')))
|
||||||
|
m = store.mark_important(conv['id'], 0, True)
|
||||||
|
check("标记上了", m and m.get('important') is True, str(m))
|
||||||
|
# ★ 关键:标记**不能动 content**(需求 4.3 的"字节冻结")
|
||||||
|
check("**content 一个字节都没动**(字节冻结)", m.get('content') == '记住这句', str(m))
|
||||||
|
check("越界下标返回 None(不抛异常)", store.mark_important(conv['id'], 99, True) is None)
|
||||||
|
check("不存在的会话返回 None", store.mark_important('nope', 0, True) is None)
|
||||||
|
check("能取消标记", store.mark_important(conv['id'], 0, False).get('important') is False)
|
||||||
|
# 端到端:标过的消息在裁剪时被捞回
|
||||||
|
msgs = []
|
||||||
|
for i in range(30):
|
||||||
|
msgs.append({'role': 'user', 'content': f'问{i}', 'important': i == 0})
|
||||||
|
msgs.append({'role': 'assistant', 'content': f'答{i}'})
|
||||||
|
r = W.trim(msgs, 20, 5)
|
||||||
|
check("端到端:标记过的老消息**没被裁掉**",
|
||||||
|
any(m['content'] == '问0' for m in r['messages']), str(r.get('rescued')))
|
||||||
|
check("没标记的老消息被裁掉了", not any(m['content'] == '问5' for m in r['messages']))
|
||||||
|
|
||||||
|
print("\n=== 9. ★★ 按内容定位(下标定位踩过的坑)===")
|
||||||
|
#
|
||||||
|
# 界面上那份消息列表和存储里那份**不保证一一对应**(本地生成的内容、
|
||||||
|
# 还没落地的流式消息……)。按下标"长按第 3 条"会把标记打到第 1 条上,
|
||||||
|
# 而且**静默标错** —— 真机上就是这么错的。
|
||||||
|
c3 = store.create_conversation('定位', agent_id='A')
|
||||||
|
store.append_messages(c3['id'], [
|
||||||
|
{'role': 'user', 'content': '第一句'},
|
||||||
|
{'role': 'assistant', 'content': '回一句'},
|
||||||
|
{'role': 'user', 'content': '第三句'},
|
||||||
|
])
|
||||||
|
m = store.mark_important_by_content(c3['id'], '第三句', 'user', True)
|
||||||
|
check("按内容标到了**那一条**", m and m.get('content') == '第三句', str(m))
|
||||||
|
flags = [(x['content'], bool(x.get('important')))
|
||||||
|
for x in store.get_conversation(c3['id'])['messages']]
|
||||||
|
check("**只标了那一条**(别的没被误标)",
|
||||||
|
flags == [('第一句', False), ('回一句', False), ('第三句', True)], str(flags))
|
||||||
|
check("内容对不上 → None(**绝不猜一条标上去**)",
|
||||||
|
store.mark_important_by_content(c3['id'], '没有这句话', 'user', True) is None)
|
||||||
|
check("空内容 → None", store.mark_important_by_content(c3['id'], '', 'user', True) is None)
|
||||||
|
check("不存在的会话 → None", store.mark_important_by_content('nope', '第一句', 'user', True) is None)
|
||||||
|
# 重复内容:从后往前找(用户长按的通常是靠后那条)
|
||||||
|
c4 = store.create_conversation('重复', agent_id='A')
|
||||||
|
store.append_messages(c4['id'], [
|
||||||
|
{'role': 'user', 'content': '一样'},
|
||||||
|
{'role': 'user', 'content': '别的'},
|
||||||
|
{'role': 'user', 'content': '一样'},
|
||||||
|
])
|
||||||
|
store.mark_important_by_content(c4['id'], '一样', 'user', True)
|
||||||
|
flags4 = [bool(x.get('important')) for x in store.get_conversation(c4['id'])['messages']]
|
||||||
|
check("重复内容标**最后**一条(从后往前找)", flags4 == [False, False, True], str(flags4))
|
||||||
|
|
||||||
print()
|
print()
|
||||||
if fails:
|
if fails:
|
||||||
print(f"❌ {len(fails)} 项不合格:")
|
print(f"❌ {len(fails)} 项不合格:")
|
||||||
|
|||||||
Reference in New Issue
Block a user