如何找到 python 中除法的余数?

How to find the remainder of a division in python?

在python中,除以变量(k和h)之后,我如何找到方程式的余数?这是我的代码:

h = int(input())
print(k / h)

简单的数学就可以了:

h = int(input())
print(k % h)