Archived
1
0
Fork 0

Add help message for bitwise functions

This commit is contained in:
Dianliang233 2023-01-20 16:37:18 +08:00
parent 8beb2fe74a
commit d3c37b6b45

View file

@ -1,6 +1,5 @@
import os
import sys
import shlex
from core.exceptions import NoReportException
from core.builtins.message import MessageSession
@ -28,6 +27,10 @@ c = on_command('calc', developers=[
'<=': '小于等于1 <= 2 -> True',
'>>': 'x 右移 y 位(相当于 x / (2 ** y)y < 1000032 >> 5 -> 1',
'<<': 'x 左移 y 位(相当于 x * (2 ** y)y < 100001 << 5 -> 32',
'&': '按位与1 & 1 -> 1',
'|': '按位或1 | 1 -> 1',
'^': '按位异或1 ^ 1 -> 0',
'~': '按位取反:~1 -> -2',
'in': 'x 在 y 中:"hat" in "what" -> True',
'not': 'not True -> False',
'is': 'x 与 y 是同一个对象1 is 1 -> True',