admin 管理员组

文章数量: 1086019


2024年3月26日发(作者:excel自动抓取数据)

1

常量、变量

常量是它的值等于自身的表达式,如123,”abc”…

变量是保存了其它值的表达式,如x=3, x即变量。

算术与逻辑操作符

函数名 语法 对应操作符

Data Access

arrayref a[index] [ ]

setarray a[index] = expr

bitfield1 x <>

setqbitfield1 x=expr

setqbitfield x=expr

quote 'expr '

getqq g.s .

getq g->s ->

putpropqq g.s=expr, g->s=expr

putpropq d~>s, d~>s =expr ~>

Unary

preincrement ++s ++

postincrement s++ ++

predecrement --s --

postdecrement s-- --

minus -n -

2

not !expr !

bnot ~x ~

Binary

expt n1 ** n2 **

times n1 * n2 *

quotient n1 / n2 /

plus n1 + n2 +

difference n1 - n2 -

leftshift x1 << x2 <<

rightshift x1 >> x2 >>

lessp n1

greaterp n1>n2 >

leqp n1<=n2 <=

geqp n1>=n2 >=

equal g1 == g2 ==

nequal g1 != g2 !=

band x1 & x2 &

bnand x1 ~& x2 ~&

bxor x1 ^ x2 ^

bxnor x1 ~^ x2 ~^

bor x1 | x2 |

bnor x1 ~| x2 ~|


本文标签: 变量 自动 抓取 表达式 逻辑