为什么最后两行print后面会爆红
为什么我在pycharm上输入
import math
def quadratic_equation(a, b, c):
t = math.sqrt(b*b-4 *a*c)
return (-b + t)/(2 * a),(-b - t)/(2 * a)
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
如上代码 最后两行print后面会爆红
为什么我在pycharm上输入
import math
def quadratic_equation(a, b, c):
t = math.sqrt(b*b-4 *a*c)
return (-b + t)/(2 * a),(-b - t)/(2 * a)
print quadratic_equation(2, 3, 0)
print quadratic_equation(1, -6, 5)
如上代码 最后两行print后面会爆红
2020-04-18
举报