Python
PC_CS
这个作者很懒,什么都没留下…
展开
-
anaconda 长时间不用无法连接
问题: 解决方法: conda list 查看ipython kernal 和 ipython的版本号,如果版本号过低则进行更新 pip install --upgrade ipykernel pip install --upgrade ipython 如果还未解决 pip install --user --ignore-installed jupyter 我的问题已解决 ...原创 2021-10-31 15:16:50 · 156 阅读 · 0 评论 -
求取点云数组中的最近点
import numpy as np from sklearn.neighbors import NearestNeighbors samples = [[0, 0, 2], [1, 0, 0], [0, 0, 1]] detect = [[0, 0, 1.3], [1.1, 0, 0]] neigh = NearestNeighbors(n_neighbors=1) neigh.fit(samples) #NearestNeighbors(…) a,d = neigh.kneighbors(detect原创 2020-08-30 21:21:36 · 725 阅读 · 0 评论