hello head

1、基本运算符

+ - * / %

//  #整除

** #幂运算

 

2、逻辑运算

and、or、not

 

3、位运算

&、 |、 ~、^、 <<、 >>

 

4、赋值运算符

+=、 -+、*=、/=、%=

//=、**=

以及位运算符与=的结合体

 

5、三元符

xx ? A : B

问号前面表示一串逻辑运算(布尔类型)

 

posted on 2017-06-06 16:56  gardonkoo  阅读(104)  评论(0编辑  收藏  举报

hello foot