Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
11 のような数を言いましたが、それを 0 から 6 までの数にしたい場合、どうすればよいですか?
0 から 6 まで 7 回カウントし、リセットしてさらに 4 回カウントして合計 11 になるため、答えはカウント数で 4 になることがわかっています。
あなたは残りを探しています。%次の演算子を使用します。
%
>>> 11 % 7 4