我的问题是如何解决以下问题:我可以获得直线方程的正确 m 和 b 值,但是如何以该格式打印它。
`import math
m=0
b=0
point1X = int(input("Input the first x value of a point in the line...."))
point1Y = int (input("Input the first y value of a point in the line...."))
point2X = int(input("Input the second x value of a point in the line...."))
point2Y = int (input("Input the second y value of a point in the line...."))
def equation (m,b):
m = (point2Y-point1Y)/(point2X-point2Y)
b = point1Y - (m*point1X)
return (m,b)
print (equation(m,b))
print (m,'x''+',b)`