🐛 修复猜语音语法错误
This commit is contained in:
parent
21e821a903
commit
b134e4fea8
@ -25,10 +25,10 @@ def get_chars(data: list) -> list:
|
|||||||
|
|
||||||
|
|
||||||
def get_key_list(data: list, key: str) -> list:
|
def get_key_list(data: list, key: str) -> list:
|
||||||
# 获取包含key的数据
|
# 获取角色所有语音
|
||||||
data_ = []
|
data_ = []
|
||||||
for i in data:
|
for i in data:
|
||||||
if key in i:
|
if i.startswith(key):
|
||||||
data_.append(i)
|
data_.append(i)
|
||||||
return data_
|
return data_
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user