2023-05-10 15:26:04 +00:00
|
|
|
|
{
|
2023-06-26 17:35:53 +00:00
|
|
|
|
"calc.help.desc": "安全地計算 Python ast 運算式。",
|
|
|
|
|
"calc.help.option.bin": "轉換為二進位:bin(268) -> 0b100001100",
|
|
|
|
|
"calc.help.option.bool": "轉換為布林值:bool(1) -> True",
|
|
|
|
|
"calc.help.option.complex": "轉換為複數:complex(1) -> (1 + 0j)",
|
|
|
|
|
"calc.help.option.divide": "商:6 / 3 -> 2",
|
|
|
|
|
"calc.help.option.equal": "等於:1 == 1 -> True",
|
|
|
|
|
"calc.help.option.float": "轉換為浮點數:float(1) -> 1.0",
|
|
|
|
|
"calc.help.option.greater_equal": "大於等於:1 >= 2 -> False",
|
|
|
|
|
"calc.help.option.hex": "轉換為十六進位:hex(268) -> 0x10c",
|
2023-07-11 17:59:53 +00:00
|
|
|
|
"calc.help.option.int": "轉換為整數:int(1.5) -> 1",
|
|
|
|
|
"calc.help.option.is": "x 與 y 是同一個物件:1 is 1 -> True",
|
2023-06-26 17:35:53 +00:00
|
|
|
|
"calc.help.option.less_equal": "小於等於:1 <= 2 -> True",
|
|
|
|
|
"calc.help.option.minus": "差/負數:3 - 1 -> 2",
|
|
|
|
|
"calc.help.option.modulo": "取模:5 % 2 -> 1",
|
2023-07-11 17:59:53 +00:00
|
|
|
|
"calc.help.option.more": "更多可用運算子和函數",
|
|
|
|
|
"calc.help.option.move_left": "x 左移 y 位(相當於 x * (2 ** y),y < 10000):1 << 5 -> 32",
|
|
|
|
|
"calc.help.option.move_right": "x 右移 y 位(相當於 x / (2 ** y),y < 10000):32 >> 5 -> 1",
|
2023-06-26 17:35:53 +00:00
|
|
|
|
"calc.help.option.multiply": "積:2 * 3 -> 6",
|
|
|
|
|
"calc.help.option.not": "非:not True -> False",
|
|
|
|
|
"calc.help.option.oct": "轉換為八進位:oct(268) -> 0o414",
|
|
|
|
|
"calc.help.option.plus": "和/正數:1 + 2 -> 3",
|
2023-07-11 17:59:53 +00:00
|
|
|
|
"calc.help.option.power": "x 的 y 次冪(由于性能問題,指數不得超過 4e+6):2 ** 3 -> 8",
|
|
|
|
|
"calc.help.option.rand": "0 與 1 之間的隨機浮點數:rand() -> 0.5789015836448923",
|
|
|
|
|
"calc.help.option.randint": "小于 x 的隨機整數:randint(6) -> 5",
|
2023-06-26 17:35:53 +00:00
|
|
|
|
"calc.help.option.str": "轉換為字串:str(1) -> \"1\"",
|
2023-07-11 17:59:53 +00:00
|
|
|
|
"calc.help.option.xor": "按位元互斥或:1 ^ 1 -> 0",
|
2023-06-26 17:35:53 +00:00
|
|
|
|
"calc.message.invalid": "運算式無效:${expr}",
|
2023-05-12 07:34:31 +00:00
|
|
|
|
"calc.message.running_time": "計算耗費時間:${time} ms / 10000 ms。",
|
2023-05-21 03:48:33 +00:00
|
|
|
|
"calc.message.time_out": "計算逾時。"
|
|
|
|
|
}
|