0

我有两个字符串数组:

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

但它不起作用!任何想法为什么?

谢谢

4

1 回答 1

0

好的,我找到了一种方法,

只需谷歌 match.pro 或 match2.pro

于 2013-08-22T15:26:29.480 回答