标签: python string integer operators
我定义,让我们说E=10我尝试A=1/E(在python中),然后python告诉我:
E=10
A=1/E
TypeError: unsupported operand type(s) for /: 'int' and 'str'
我该怎么办呢?
谢谢!
答案 0 :(得分:2)
>>> E=10.0 >>> A=1/E >>> print(A)
0.1