在Python中有丰富的算术运算,这使得Python在科学计算领域有着很高的地位,Python可以提供包括四则运算在内的各种算术运算. a = 10 b = 20 print(a-b) #-10 print(a/b) #0.5 print(a%b) #10,返回余数 print(a**b) #10^20 print(a//b) #0,取整,返回商的整数部分 print(a and b) #与操作,返回值为20 print(a or b) #或操作,返回值为10 print(not(a and b…