Discuss / Python / wola

志学-鲍

#1 Created at ... [Delete] [Delete and Lock User]

!/usr/bin/env python3

-- coding: utf-8 --

a = int(input('输入上年度成绩:')) b = int(input('输入本年度成绩: ')) s = b - a if s > 0: s1 = (s / a)100 print('恭喜你,提升了','%4.f%%' % s1) else: s2 = (-s / a)100 print('你需要努力了,你降低了', '%4.f%%' % s2)

壁里角头

#2 Created at ... [Delete] [Delete and Lock User]

66666


  • 1

Reply