- 博客(1)
- 收藏
- 关注
原创 2021-04-01
python作业购买地铁车票的规定如下:乘 1~4 站,3 元/位;乘 5~9 站,4 元/位;乘 9 站以上,5 元/位。请用python实现sta_num = int(input("请您输入站数"))per_num = int(input("请您输入人数"))if sta_num <= 0 or per_num <= 0 : print("输入错误")if 1<= sta_num <=4: m=3 a = per_num
2021-04-01 22:39:39 309
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人