#!/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'
Sign in to make a reply
大阳御制
还是报错说TypeError: unsupported operand type(s) for -: 'str' and 'str'