摘要:
import numpy as np arr1=np.arange(16,dtype=float).reshape(4,4) arr2=np.array([10,20,30,40]) arr3=np.array([[10,20,30,40],[10,20,30,40],[10,20,30,40],[ 阅读全文
摘要:
import numpy as np arr=np.array([0,30,60,45,90,150,180,360]) a=np.sin(arr*np.pi/180) b=np.arcsin(0.5) c=np.degrees(a)#转化为角度 arr2=np.array([1.1,3.3,5.5 阅读全文
摘要:
# coding: utf-8 #1.算法 import csv from igraph import Graph as IGraph path="net.data" edges=[]#边长集合 with open(path,"r") as file: for row in csv.reader(f 阅读全文