我有两个字符串数组:
A = ['i4x://C/2013/problem/b4ce36e6a5f745ddb061636fc86ed3cb', $
'i4x://C/2013/problem/08b2360eea2a4a95930b073694f7b5b2', $
'i4x://C/2013/problem/6f7493b64628424db6a46354179bd887']
和
B = ['i4x://C/2013/problem/02bfbcf3f8b94eed81f89573be253be3', $
'i4x://C/2013/problem/02cfda1e68174d3e89549e828b270339', $
'i4x://C/2013/problem/b4ce36e6a5f745ddb061636fc86ed3cb', $
'i4x://C/2013/problem/04683dc23ab14934ba9fc32a9ad25bfb', $
'i4x://C/2013/problem/08b2360eea2a4a95930b073694f7b5b2', $
'i4x://C/2013/problem/bad0517331d34336a29d9c5e898decf1', $
'i4x://C/2013/problem/6f7493b64628424db6a46354179bd887']
我试图获得B中A的所有指数, 使用以下命令行
k = where(strcmp(A, B),cnt)
print, k
但它不起作用! 有什么想法吗?
由于
答案 0 :(得分:0)
好的,我找到了一种方法,
只需google match.pro或match2.pro