摘要: 初始化数组 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 阅读全文
posted @ 2018-07-26 16:21 jhc888007 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 函数式编程: 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] 阅读全文
posted @ 2018-07-26 15:11 jhc888007 阅读(160) 评论(0) 推荐(0) 编辑