摘要:
初始化数组 arr = np.array([[1,2],[3,4]]) arr = np.array([[1,2],[3,4]], dtype=complex) arr = np.zeros((3,4)) arr = np.ones((1,2)) arr = np.arange(4,10).resh 阅读全文
摘要:
函数式编程: map((lambda x: x+1), lst) filter((lambda x: x in dic), lst) reduce((lambda x, y: x*10 + y, lst) [x for x in dic] 阅读全文