<?php class DBDA { public $host = "localhost"; public $uid = "root"; public $pwd = "20982239"; //执行sql语句,返回相应的结果函数 //$sql是要执行的sql语句 //$type是sql语句的类型,0代表增删改,1代表查询 //$db代表要操作的数据库 public function Query($sql,$type=1,$db="
python创建二维 list 的方法是在 list 里存放 list : l = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]] numpy可以直接创建一个二维的数组: import numpy as np l = np.array([ [1,2,3,4], [5,6,7,8], [9,10,11,12], [13,14,15,16] ]) numpy二维数组获取某个值: [a, b] : a 表示行索引, b 表示列索引,就是获取第 a 行