print('rate = %.f %%' % (s2 - s1) / s1 * 100) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unsupported operand type(s) for /: 'str' and 'int'
在参数最外面加上()就不会出现这样的错误,是什么原理?不能理解,可以解释一下吗
Sign in to make a reply
就像做一场梦
在参数最外面加上()就不会出现这样的错误,是什么原理?不能理解,可以解释一下吗