标签: python python-2.7 error-handling
它是一个简单的代码行,但我仍然无法弄清楚为什么它给出这样的错误“无法将表达式转换为浮动”
from __future__ import division from pylab import * from sympy import * r = symbols('r') P = 1023732.58489791*cos(r) + 355250.305250305*cos(2*r) P1 = solve(P,r) print P1
Error message snapshot