有两点,即S =(x,y),P =(p,q)
请回答python3编程
使用scikit学习,它比使用python数学模块更加优化。
https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.cosine_distances.html