一,代码: x = int(input('请输入当天行走的步数!\n')) y = x*28 z = float(y/1000) print('今天共消耗卡路里:',y,'即',z,'千卡') 二,运行截图: