diff options
author | Lint Action <[email protected]> | 2022-06-09 11:26:03 +0000 |
---|---|---|
committer | Lint Action <[email protected]> | 2022-06-09 11:26:03 +0000 |
commit | f4119aad9936f6b643531073a0b6a469cb0cdbb7 (patch) | |
tree | c29a5005b29b4030a6c72180b854090f67bc61ca /ATRI/plugins/applet | |
parent | 27c86197f435438d69fd59d123fd741739400e46 (diff) | |
download | ATRI-f4119aad9936f6b643531073a0b6a469cb0cdbb7.tar.gz ATRI-f4119aad9936f6b643531073a0b6a469cb0cdbb7.tar.bz2 ATRI-f4119aad9936f6b643531073a0b6a469cb0cdbb7.zip |
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/plugins/applet')
-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 60ca581..e94c0d9 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 |