1、
money = input("欢迎使用XXX充值业务,请输入充值金额:\n")
money_str = str(money)
print("充值成功,您本次充值"+money_str,"元")
2、
3、
dad = float(input("请输入父亲的身高:\n"))
mom = float(input("请输入母亲身高:\n"))
son = (dad + mom)*0.54
son_str = str(son)
print("预测儿子身高为:"+son_str)
4、
bushu = int(input("请输入当天行走的步数!\n"))
cals = bushu*28
str_cals = str(cals)
cals/=1000
str_CAL = str(cals)
print("今日共消耗卡路里:"+str_cals,"(即 "+str_CAL,"千卡)")