問題詳情

21. The following python code is applied for the four arrays d1—d4.5ee595522f686.jpg

d1 = np.array([1, 0, 0, 1, 0, 0]); d2 = np.array([0, 1, 0, 1, 1, 0]); d3 = np.array([0, 0, 0, 0, 0, 0]); 

d4 = np.array([1, 1, 0, 0, 1, 0]). Consider the following statements. 

(a) func(d1, d2)[2] = 0 

(b) func(d2, d4) = d3 

(c) func(d1, d2) = d4 

(d) func(func(d1, d4), d2) = d3 

Which of the above statements is CORRECT


(A) (a)(b)
(B) (a)(c)(d)
(C) (b)(c)(d)
(D) All of the above are correct
(E) None of the above is correct



參考答案

無參考答案

內容推薦