ASCII值控制字符ASCII值控制字符ASCII值控制字符ASCII值控制字符0NUT32(space)64@96、1SOH33!65A97a2STX34"66B98b3ETX35#67C99c4EOT36$68D100d5ENQ37%69E101e6ACK38&70F102f7BEL39,71G103g8BS40(72H104h9HT41)73I105i10LF42*74J106j11VT43+75K107k12FF44,76L108l13CR45-77M109m14SO46.78N110n15SI47/79O111o16DLE48080P112p17DCI49181Q113q18DC250282R114r19DC351383S115s20DC452484T116t21NAK53585U117u22SYN54686V118v23TB55787W119w24CAN56888X120x25EM57989Y121y26SUB58:90Z122z27ESC59;91[123{28FS60<92/124|29GS61=93]125}30RS62>94^126`31US63?95_127DEL
特殊字符解释
NUL空VT 垂直制表SYN 空转同步STX 正文开始CR 回车CAN 作废ETX 正文结束SO 移位输出EM 纸尽EOY 传输结束SI 移位输入SUB 换置ENQ 询问字符DLE 空格ESC 换码ACK 承认DC1 设备控制1FS 文字分隔符BEL 报警DC2 设备控制2GS 组分隔符BS 退一格DC3 设备控制3RS 记录分隔符HT 横向列表DC4 设备控制4US 单元分隔符LF 换行NAK 否定DEL 删除
Java 运算符优先级
运算符优先级postfixexpr++ expr--unary++expr --expr +expr -expr ~ !multiplicative* / %additive+ -shift<< >> >>>relational< > <= >= instanceofequality== !=bitwise AND&bitwise exclusive OR^bitwise inclusive OR|logical AND&&logical OR||ternary? :assignment= += -= *= /= %= &= ^= |= <<= >>= >>>=
C++运算符优先级
PrecedenceOperatorDescriptionAssociativity1::Scope resolutionLeft-to-right2++ --Suffix/postfix increment and decrement()Function call[]Array subscripting.Element selection by reference−>Element selection through pointer3++ --Prefix increment and decrementRight-to-left+ −Unary plus and minus! ~Logical NOT and bitwise NOT(type)Type cast*Indirection (dereference)&Address-ofsizeofSize-ofnew, new[]Dynamic memory allocationdelete, delete[]Dynamic memory deallocation4.* ->*Pointer to memberLeft-to-right5* / %Multiplication, division, and remainder6+ −Addition and subtraction7<< >>Bitwise left shift and right shift8< <=For relational operators < and ≤ respectively> >=For relational operators > and ≥ respectively9== !=For relational = and ≠ respectively10&Bitwise AND11^Bitwise XOR (exclusive or)12|Bitwise OR (inclusive or)13&&Logical AND14||Logical OR15?:Ternary conditionalRight-to-Left16=Direct assignment (provided by default for C++ classes)+= −=Assignment by sum and difference*= /= %=Assignment by product, quotient, and remainder<<= >>=Assignment by bitwise left shift and right shift&= ^= |=Assignment by bitwise AND, XOR, and OR17throwThrow operator (for exceptions)18,CommaLeft-to-right
C语言运算符优先级
PrecedenceOperatorDescriptionAssociativity1++ --Suffix/postfix increment and decrementLeft-to-right()Function call[]Array subscripting.Structure and union member access−>Structure and union member access through pointer(type){list}Compound literal(C99)2++ --Prefix increment and decrementRight-to-left+ −Unary plus and minus! ~Logical NOT and bitwise NOT(type)Type cast*Indirection (dereference)&Address-ofsizeofSize-of_AlignofAlignment requirement(C11)3* / %Multiplication, division, and remainderLeft-to-right4+ −Addition and subtraction5<< >>Bitwise left shift and right shift6< <=For relational operators < and ≤ respectively> >=For relational operators > and ≥ respectively7== !=For relational = and ≠ respectively8&Bitwise AND9^Bitwise XOR (exclusive or)10|Bitwise OR (inclusive or)11&&Logical AND12||Logical OR13?:Ternary conditionalRight-to-Left14=Simple assignment+= −=Assignment by sum and difference*= /= %=Assignment by product, quotient, and remainder<<= >>=Assignment by bitwise left shift and right shift&= ^= |=Assignment by bitwise AND, XOR, and OR15,CommaLeft-to-right
PHP运算符优先级
结合方向运算符附加信息非结合clone newclone 和 new左[array()非结合++ --递增/递减运算符非结合~ - (int) (float) (string) (array) (object) (bool) @类型非结合instanceof类型右结合!逻辑操作符左* / %算术运算符左+ - .算术运算符 和 字符串运算符左<< >>位运算符非结合< <= > >= <>比较运算符非结合== != === !==比较运算符左&位运算符 和 引用左^位运算符左|位运算符左&&逻辑运算符左||逻辑运算符左? :三元运算符右= += -= *= /= .= %= &= |= ^= <<= >>=赋值运算符左and逻辑运算符左xor逻辑运算符左or逻辑运算符左,多处用到
这个表给出Python的运算符优先级(从低到高).
从最低的优先级(最松散地结合)到最高的优先级(最紧密地结合)。
这意味着在一个表达式中,Python会首先计算表中较下面的运算符,然后在计算列在表上部的运算符。
Python 运算符优先级
运算符描述lambdaLambda表达式or布尔“或”and布尔“与”not x布尔“非”in,not in成员测试is,is not同一性测试<,<=,>,>=,!=,==比较|按位或^按位异或&按位与<<,>>移位+,-加法与减法*,/,%乘法、除法与取余+x,-x正负号~x按位翻转**指数x.attribute属性参考x[index]下标x[index:index]寻址段f(arguments...)函数调用(experession,...)绑定或元组显示[expression,...]列表显示{key:datum,...}字典显示'expression,...'字符串转换