这是源代码
import math
def main():
print("this program finds the real solutions to a quadratic\n")
a,b,c=eval(input("please enter the coefficients (a,b,c):"))
delta=b*b-4*a*c
if delta<0:
print("\nthe equation has no real roots!")
else:
discRoot=math.sqrt(delta)
root1=(-b+discRoot)/(2*a)
root2=(-b-discRoot)/(2*a)
print("\nthe solutions are:",root1,root2)
main()
不知道那里出了问题