Python SyntaxError: invalid syntax - Missing Multiplication Operator
There is a syntax error in the code. The multiplication operator '' is missing in the expression '(x1-x01)(y-y0)'. It should be '(x1-x01)(y-y0)'. The corrected code is:
r1 = sum((x1-x01)*(y-y0))/(sqrt(sum((x1-x01)**2))*sqrt(sum((y-y0)**2)))
原文地址: https://www.cveoy.top/t/topic/oHxL 著作权归作者所有。请勿转载和采集!