【发布时间】:2020-01-07 08:55:12
【问题描述】:
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32 输入“help”、“copyright”、“credits”或“license”了解更多信息。
7%5 2
8%5 3
6%5 1
【问题讨论】:
-
这里有什么问题? 7%5 表示“7 除以 5 的欧几里得除法的其余部分是 2”
-
python3 中的整数除法是
//
标签: integer-division