腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(1661)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
无法读取未定义的属性'
neighbours
‘
this.es[i]; var d = getLength(e); this.
neighbours
[v].
neighbours
.push(new Neighbour(u, d))
浏览 2
修改于2015-08-01
得票数 2
1
回答
ModuleNotFoundError:没有名为“sklearn.
neighbours
”的模块
from sklearn.
neighbours
import KNeighborsClassifier ModuleNotFoundError: No module named 'sklearn.
neighbours
浏览 0
修改于2019-12-19
得票数 3
回答已采纳
2
回答
如何在python中的开始框的
Neighbours
上执行操作?
我已经使用for loop和pygame创建了一个网格: ? 我还把它连接到一个二维数组上。我已经根据块将x,y转换为行和列。 现在绿色的块代表开始位置,我必须对它的邻居,即所有接触它的块(甚至是角块)执行操作。 我想知道是否有更有效的解决方案,因为目前我只是将它们逐个存储在列表中,然后对其执行操作。 就像一个循环或类似的东西。 为了得到每一个的行和列,它需要大量的代码,所以请帮助我是一个初学者。 到目前为止,我已经做了这样的事情(我知道这是最糟糕的方式) self.neighboursx.append(self.start_point_column) self.neighbours
浏览 20
修改于2020-10-19
得票数 0
1
回答
对于我在Ocaml中关于此问题的fold_
neighbours
尝试,我需要一些反馈
print_int _grid; in let in_quadrant (x1, y1) (x2, y2) = x1/3 = x2/3 && y1/3 = y2
浏览 13
修改于2021-09-15
得票数 0
2
回答
生命博弈中的邻域计数法
true: nextGeneration[x][y]; if (board [x-1][y-1]){ }else{ }
neighbours
+=1; }el
浏览 4
提问于2017-03-23
得票数 0
回答已采纳
1
回答
Python生命游戏生成错误的结构
= 0
neighbours
+= matrice[i-1,j]
neighbours
+= matrice[i,j+1]
neig
浏览 7
提问于2022-10-25
得票数 0
2
回答
生命的游戏(康威的游戏)-如何检查细胞邻居
public int
neighbours
(int x, int y) int
neighbours
= 0; if(grid[x++][y++] == 1) {
neighbours
++;} if(gr
浏览 2
修改于2011-12-03
得票数 0
5
回答
索引超出了数组的界限
int arrayRows = 20; { // Count number of
neighbours
surrounding live cell <
浏览 1
修改于2015-11-20
得票数 0
1
回答
将SQL内插到LINQ查询
[0] + "%"} OR A.Location LIKE {
neighbours
[2] + "%"}OR A.Location LIKE {
neighbours
[4] + "%"} OR A.LocationLIKE {<
浏览 2
修改于2022-04-09
得票数 0
回答已采纳
2
回答
检查邻居给出了奇怪的分段错误。C语言中的生活游戏
to y, x int
neighbours
= 0; if(y > 0)
neighbours
=
neighbours
+ grid[y - 1][x] == 1; if (y< GRIDSIZE)
neighbours
=
neighbou
浏览 33
提问于2020-10-28
得票数 0
1
回答
定义:期望变量,但找到一个部分
: non-empty list of potential
neighbours
-> narrowed list of validated
neighbours
that are in the grid(define (
neighbours
-in-grid (
neighbours
(random-cell a-maze))) (cond [(< 0 (first
neighbours
) > grid-size) (remove (first
neighbours
)
浏览 1
修改于2016-03-19
得票数 1
1
回答
Python输入中断if语句
如果我注释掉输入,然后像这样在number_of_
neighbours
中插入数字,它就能工作了:number_of_
neighbours
= int(number_of_
neighbours
) print('No borders') elif number_of_
neighbours
number_of_
neighbours
=
浏览 11
修改于2022-04-18
得票数 0
1
回答
递归函数返回列表中的分段错误
; list<Neighbour_node>::iterator iterator; temp_
neighbours
= findNewNeighbours(original,hair[particle].
neighbours
[i],k - 1); temp_
neighbours
.sort(compareNei
浏览 1
提问于2013-05-01
得票数 3
1
回答
如何使用Open MP并行化A*算法?
= '1'){ } #pragma omp ordered gScores[<e
浏览 46
提问于2021-01-15
得票数 1
1
回答
生命的游戏:寻找邻居
private int getNeighbours(LifeBoard board, int row, int col){
neighbours
neighbours
++; if(board.get(row, col-1)){ }
neighbours
++; if(board.
浏览 1
提问于2014-11-24
得票数 3
回答已采纳
0
回答
如何使用递归函数检查两个节点是否相连
class Node(): self.
neighbours
=
neighbours
return self.
neighbours
connections=first.return_
neighbours
return True
浏览 2
修改于2016-07-09
得票数 1
回答已采纳
5
回答
无法将矩阵数字的类别强制转换为整数
我在R中编写了一个邻接矩阵,如下所示:for (i in 1:100) {
neighbours
[i,i] = 1 } #reflexive但随后我注意到class(
neighbours
)是double matrix。> class(
neighbours
[5])> class(
neighbours
[5]) <- "integer" &g
浏览 2
修改于2012-09-08
得票数 11
2
回答
如何检查两个列表是否与重复列表相等?
= v1.
neighbours
.copy() # if there is, removethat Vertex from both lists for n1 in v1_
n
浏览 0
提问于2019-02-28
得票数 0
回答已采纳
1
回答
高效Kademlia水桶
这是我的代码: private final LinkedList<Neighbour>
neighbours
;
neighbours
= new LinkedList<>(); if(index == -1) {
neighbours
浏览 4
提问于2014-10-25
得票数 0
回答已采纳
1
回答
for循环和for..of循环有什么区别?
为什么这段代码 DFS(n);是否给出与此代码不同的输出?for (let i = 0; i < at.
neighbours
.length; i++) { DFS(n);顺便说一下,这是我的函数: if (at.visited) return; // for (let i = 0; i < at
浏览 1
修改于2020-08-19
得票数 1
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券