diff options
author | Lint Action <[email protected]> | 2022-03-27 07:48:00 +0000 |
---|---|---|
committer | Lint Action <[email protected]> | 2022-03-27 07:48:00 +0000 |
commit | bd699cc615b65168864d940fd75420fde4e172ae (patch) | |
tree | 7de9b246e7dc417d4158c84d7f74a47a1e6f5d5a /ATRI | |
parent | 793a5916728f1ecd11d39cd5084df90c89ffb028 (diff) | |
download | ATRI-bd699cc615b65168864d940fd75420fde4e172ae.tar.gz ATRI-bd699cc615b65168864d940fd75420fde4e172ae.tar.bz2 ATRI-bd699cc615b65168864d940fd75420fde4e172ae.zip |
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI')
-rw-r--r-- | ATRI/plugins/applet/data_source.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/applet/data_source.py b/ATRI/plugins/applet/data_source.py index e94c0d9..60ca581 100644 --- a/ATRI/plugins/applet/data_source.py +++ b/ATRI/plugins/applet/data_source.py @@ -26,7 +26,7 @@ class Applet(Service): def _bv_dec(x) -> str: r = 0 for i in range(6): - r += tr[x[s[i]]] * 58**i + r += tr[x[s[i]]] * 58 ** i return str((r - add) ^ xor) @staticmethod @@ -34,7 +34,7 @@ class Applet(Service): x = (x ^ xor) + add r = list("BV1 4 1 7 ") for i in range(6): - r[s[i]] = table[x // 58**i % 58] + r[s[i]] = table[x // 58 ** i % 58] return "".join(r) @staticmethod |