题解 | #除法与取模运算#
除法与取模运算
https://www.nowcoder.com/practice/9fe22ac9e55448f4920886f84efeac58
def Cal(x,y):
div=x//y
mod=x%y
rou="{:.2f}".format(x/y)
return div,mod,rou
if __name__ == "__main__":
x=int(input())
y=int(input())
div,mod,rou=Cal(x,y)
print(div,mod)
print(rou)

查看12道真题和解析