方程求解为什么不能这么写?
为什么不可以这么写?
import math
def quadratic_equation(a, b, c):
x = []
a * x * x + b * x + c = 0
return x
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
为什么不可以这么写?
import math
def quadratic_equation(a, b, c):
x = []
a * x * x + b * x + c = 0
return x
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
2017-09-07
举报