This commit is contained in:
EillesWan 2024-05-02 00:29:30 +08:00
commit 67ca76f408
2 changed files with 10 additions and 8 deletions

View File

@ -8,7 +8,9 @@
### [林纳克斯(Linux)与其衍生操作系统](./download%26start/Linux.md) ### [林纳克斯(Linux)与其衍生操作系统](./download%26start/Linux.md)
### [安卓(Android)与其衍生操作系统](./download%26start/Android.md) ### [安卓(Android)与其衍生操作系统](./download%26start/Android.md)
## 使用教程 ## 命令行版本的使用教程
> 注意,图形用户界面版本无需查看此内容。
1. 参数说明 1. 参数说明

View File

@ -180,19 +180,19 @@ def is_in_bdx_mcpack(sth: str):
) )
def is_in_player(sth: str, in_ok: tuple): def is_in_player(sth: str, in_ok: tuple = (0,1,2)):
return isin( return isin(
sth, sth,
dict( dict(
[ [
(i, v) (i, v)
for i, v in [ for i, v in [
0, (0,
("delay", "0", "延迟", "帝蕾"), ("delay", "0", "延迟", "帝蕾"),),
1, (1,
("score", "1", "计分板", "积分", "积分板", "计分", "斯阔尔"), ("score", "1", "计分板", "积分", "积分板", "计分", "斯阔尔"),),
2, (2,
("repeater", "2", "中继器", "瑞皮特"), ("repeater", "2", "中继器", "瑞皮特"),),
] ]
if i in in_ok if i in in_ok
] ]