python语言脑图学习系列(5)- Python3 运算符5

为了方便学习,制作了脑图,能快速的记忆和学习。
python语言脑图学习系列(5)- Python3 运算符5

测试代码如下:

a , b,c =123,2,4
q = a/b #注意:Python2.x 里,整数除整数,只能得出整数。如果要得到小数部分,把其中一个数改成浮点数即可。
print(“q =” , q)
q = a%b
print(“q =” , q)
q= b**c
print(“q =” , q)
q =a//b
print(“q =” , q)

a+=b
print(a)

d = 4
print(a is b)
print(c is d)
print(c is not d)

a=13.0
b=13.0
print(a is b)
print(a==b)