急,python中两个数组,怎么才能在不使用循环的情况下,比较数组中对应位置的元素的大小?求各位老师指导,万分感谢
https://zhidao.baidu.com/question/459567055.html
两个list相减
>>> A = [3, 4, 6, 7] >>> B = [1, 3, 6, 3] >>> map(operator.sub, A, B) [2, 1, 0, 4]