- if you print(2**3**2) you will get 512 instead of 64 because python calculate from right to left for this exponentiation operator (**). This is due to history reason. Use parentheses to force exactly the order you want when exponentiation is involved
-If you print(12//15), you will get 0.
网友评论