我有很多<我>使用相同的类= “右图标图标 - 历史记录etech-workorderlist-history-action”,我正在尝试创建一个在点击所有这些内容时服务的脚本:
x = np.nonzero(dstc > 0 and dst < 60)
dstc[x] = 0
我写了这个,但它只点击了第一个
Traceback (most recent call last):
File "C:\Python27\Sheet Counter\customsobel.py", line 32, in <module>
x = np.nonzero(dstc > 0 and dst < 60)
ValueError: The truth value of an array with more than one element is
ambiguous. Use a.any() or a.all()