python编程训练题

img

你题目的解答代码如下:(如有帮助,望采纳!谢谢! 点击我这个回答右上方的【采纳】按钮)

n = int(input("请输入人数:"))
print("每个人得到的重量为:{:.2f}".format(5000/n))