在Python参数中,“[,]”是什么意思?它们可以在输入参数中看到,例如:
cv2.Canny(image, threshold1, threshold2[, edges[, apertureSize[, L2gradient]]])
或学习;(例如sklearn.linear\u模型(线性回归):
fit(X, y[, sample_weight]) Fit linear model.
y[,样本重量]实际上是什么意思?它的意思是像数组中的第一维吗?你知道吗
y[:,sample_weight]
更新: 谢谢你的回答,它的意思是可选的。但是为什么它们要嵌套呢?你知道吗
threshold2[, edges[, apertureSize[, L2gradient]]]
目前没有回答
相关问题 更多 >
编程相关推荐