浙大版《Python 程序设计》题目集 第2章-13 分段计算居民水费 (10分)

x = int(input())
if x <= 15:
    print('%.2f' % (4*x/3))
else:
    print('%.2f' % (2.5*x-17.5))
发布了33 篇原创文章 · 获赞 0 · 访问量 267

猜你喜欢

转载自blog.csdn.net/weixin_42229583/article/details/104573103