查看python中某种算法的源代码,比如说查看KMeans算法的源代码: from sklearn.cluster import KMeansimport inspect as ist ist.getsource(KMeans)