python操作dict/list等记录
from collections import defaultdict ... # 创建一个dict,声明它的val格式为list。如{key:[1,2,3],key2:[]...} dict_temp = defaultdict(list)
import numpy as np # 创建一个二维数组,参数类型为double matrix = np.zeros((colnum,rownum),dtype = np.double)
from collections import defaultdict ... # 创建一个dict,声明它的val格式为list。如{key:[1,2,3],key2:[]...} dict_temp = defaultdict(list)
import numpy as np # 创建一个二维数组,参数类型为double matrix = np.zeros((colnum,rownum),dtype = np.double)