摘要: # NumPy Python科学计算基础包 import numpy as np # 导入numpy库并起别名为npnumpy_array = np.array([[1,3,5],[2,4,6]])print(numpy_array) # SciPy Python中用于科学计算的函数集合from s 阅读全文
posted @ 2018-06-08 18:06 云山之巅 阅读(710) 评论(0) 推荐(0)
摘要: # 使用默认的高阶函数map和reduce import randomdef map_function(arg): # 生成测试数据 return (arg,1) list_map = list(map(map_function,list(ran * random.randint(1,2) for 阅读全文
posted @ 2018-06-08 09:48 云山之巅 阅读(1820) 评论(0) 推荐(0)