1.最简单的方式-mysql(面向过程) <?php $con = mysql_connect("localhost","root","password"); $select_db = mysql_select_db('test'); if (!$select_db) { die("could no ...
分类:
数据库 时间:
2019-11-07 15:16:25
阅读次数:
150
模型保存 BP:model.save(save_dir) SVM: 模型调用: BP: SVM: ...
分类:
编程语言 时间:
2018-06-16 23:01:46
阅读次数:
432
一:语法基础 完整的正则表达式由两种字符组成 特殊字符(元字符)和普通字符(文本)示例:/^\d+hello.*/\d + . * 都是元字符hello是普通字符 二:元字符 1.元字符列表 . 除了换行以外的任意字符[abcde] 匹配abcde里面的任意字符[^abcde] 不匹配abcde里面 ...
分类:
其他好文 时间:
2018-04-18 16:00:17
阅读次数:
130
void Main(){ Prototype p1=new Prototype(); Prototype p2=p1.Clone() as Prototype; object.ReferenceEquals(p1,p2).Dump();}class Prototype:IClone...
分类:
其他好文 时间:
2014-11-17 10:34:29
阅读次数:
157
void Main(){ SimpleFactory.GetProduct("A").Dump(); SimpleFactory.GetProduct("B").Dump();}class Product{}class ProductA:Product{}class ProductB:P...
分类:
其他好文 时间:
2014-11-17 09:11:01
阅读次数:
156
void Main(){ Factory.ChooseFactory("A").GetProduct().Dump(); Factory.ChooseFactory("B").GetProduct().Dump();}class Product{}class ProductA:Produ...
分类:
其他好文 时间:
2014-11-17 09:07:36
阅读次数:
254
class-dump 官网地址:这里
我这里下载的是 class-dump-3.5.dmg 版本的。双击.dmg 文件,将 拉倒 /usr / local / bin 目录下,这样就可以在终端使用 class-dump 命令了。
这里我演示dump系统自带的计算器,导出它的头文件。
命令如下:
class-dump -H /Applications/Calculator.app -o /...
分类:
其他好文 时间:
2014-09-14 18:03:17
阅读次数:
211