- 博客(3)
- 收藏
- 关注
原创 Jmeter if 控制器报错Expected an operand but found
在 if 控制器中,勾选 Interpret Condition as Variable Expression?选项,确保 JMeter 能够正确解析 ${} 语法。然后问题解决,不再报错。
2025-02-27 10:19:53
379
原创 【python】TypeError NoneType object is not subscriptable
‘NoneType’ object is not subscriptable出错的位置:if thickness[0] is None: print ("cannot estimate the slice thickness!")错误原因是:我本来想得到的thickness是个list,但因为某些原因查看发现计算得到的thickness是None,所以它无所谓索引,没有None[0]。改正:if thickness is None: print ("cannot estimate
2020-06-16 12:11:16
6082
原创 -210Unsupported format or combination of formats,in function cv,moments
(-210:Unsupported format or combination of formats) in function ‘cv::moments’原始程序报错部分:from cv2 import moments #计算外边缘质心 M = cv2.moments(outer_edge+0) center_x = int(M["m10"] / M["m00"]) center_y = int(M["m01"] / M["m00"])这是因为moments()函数输入必须为array类型,且其中元
2020-06-11 12:14:13
1954
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人