From b134e4fea8491a25e9842b633698815dd96c3d63 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 30 Jan 2022 11:30:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E7=8C=9C?= =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- defs/guess_voice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defs/guess_voice.py b/defs/guess_voice.py index a6ffe60..dbf0743 100644 --- a/defs/guess_voice.py +++ b/defs/guess_voice.py @@ -25,10 +25,10 @@ def get_chars(data: list) -> list: def get_key_list(data: list, key: str) -> list: - # 获取包含key的数据 + # 获取角色所有语音 data_ = [] for i in data: - if key in i: + if i.startswith(key): data_.append(i) return data_