我想在我的数组中找到1的最长序列的起始位置:
a1=[0,0,1,1,1,1,0,0,1,1] #2
我按照这个答案找到最长序列的长度.但是,我无法确定位置.
python numpy scipy
numpy ×1
python ×1
scipy ×1