Selection from Python for Data Analysis [Book] ... result = [] for i in range(n): if cond1[i] and cond2[i]: result.append(0) elif cond1[i]: result.append(1) ...
確定! 回上一頁