Discuss / Python / 作业问题

作业问题

Topic source

大阳御制

#1 Created at ... [Delete] [Delete and Lock User]
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
s1=int(input('去年的成绩是:'))
s2=int(input('今年的成绩是:'))
r=(s2-s1)/s1*100)
print('成绩提升百分点:%2.2f%%' %r)

还是报错说TypeError: unsupported operand type(s) for -: 'str' and 'str'


  • 1

Reply