print("Division",10/2) #Output 5.0, with implicit data type conversionprint("divide", 10//3) #output 3print("Exponentiation", 2**3) #output 8
#python supports chain assignmenta=b=c=100#python supports series unpacking assignmenta,b=10,20 # is a=10 b=20a,b=b,a #The value exchange of a and b can be realized, which is simpler than other languages without introducing an intermediate variable temp
Left shift: supplement with 0 directly at the low end
Right shift: It depends on whether the highest bit is 0 or 1, and there are two cases for complementing.