>>> 5 % 0
Traceback (most recent call last):
  File "<pyshell#354>", line 1, in <module>
    5 % 0
ZeroDivisionError: integer division or modulo by zero
>>> 5 % 1
0
>>> 5 % 2
1
>>> 5 % 3
2
>>> 5 % 4
1
>>> 5 % 5
0
>>> 5 % 6
5
>>> 5 % 7
5
>>> 5 % 8
5
>>> 7 % 8
7

 

相关文章:

  • 2021-08-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-07-12
  • 2021-08-26
  • 2021-09-03
相关资源
相似解决方案