在python中,我将变量除以k和h之后,如何找到方程的余数?这是我的代码:
h = int(input()) print(k / h)
简单的数学就能解决问题:
h = int(input()) print(k % h)