当前位置:网站首页>basic operator

basic operator

2022-08-02 03:34:00 woshicaiji12138

print(11/2) % divided byprint(11//2) % divisibleprint(11%2) % remainder

The results are 5.5, 5, 1, respectively.

print(2**3) % means 2 to the power of 3print(2*3) % means 2 times 3

The results were 8 and 6 respectively

print(9//-4)print(-9//4) % a positive and one negative integer formula, rounded downprint(9%-4) %remainder=dividend-divisor*Businessprint(-9%4)

The results are -3, -3, -3, 3 respectively

原网站

版权声明
本文为[woshicaiji12138]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/214/202208020321110773.html