python学习--numpy的数组
摘要:
numpy中的数组类型为ndarry创建# -*- coding: utf-8 -*-import numpy as np#用列表或元组创建a = np.array([[1,2,3],[4,5,6]])b = np.array([1,2],dtype=complex)#类似内置函数rangec = np.arange(24).reshape(2,3,4)#等差,等比数组d = np.linspace(0,1,10,endpoint=False)print np.logspace(0,4,3,base=2)#创建特殊数组print np.zeros((2,3))print np.zeros_li 阅读全文
posted @ 2013-10-13 13:22
赛欧拉
阅读(13102)
评论(0)
推荐(0)
浙公网安备 33010602011771号