📜  如何在python代码示例中计算除法余数

📅  最后修改于: 2022-03-11 14:46:41.908000             🧑  作者: Mango

代码示例1
inches=44.5  # height of child
print(f'zach is {inches//12} feet and {inches%12} inches tall')

#output
# zach is 3.0 feet and 8.5 inches tall