因此我們需要一個能夠設定比較方法的API,其實python已經內建了, filter 。 len(list(filter(lambda x: numpy.all(x == array([2,2])), l))) > 0.
確定! 回上一頁