会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
artfoxe6#gmail.com
new
codeAB
新随笔
管理
随笔 - 98
文章 - 1
评论 - 0
阅读 -
28万
上一页
1
···
6
7
8
9
10
2015年10月16日
MySQL优化基础
摘要: 唯一索引(unique index)强调唯一,就是索引值必须唯一。 create unique index [索引名] on 表名 (列名);alter table 表名 add unique index [索引名] (列名);删除索引:drop index 索引名 on 表名;alter tabl
阅读全文
posted @ 2015-10-16 10:51 codeAB
阅读(366)
评论(0)
推荐(0)
2015年9月3日
linux下截取整个网页
摘要: 前提需要安装 gimp图片处理软件打开gimp文件-创建-从网页 然后输入网页地址就可以截取整个网页了
阅读全文
posted @ 2015-09-03 13:11 codeAB
阅读(299)
评论(0)
推荐(0)
2015年9月2日
thinkphp全站静态页实现方法
摘要: 1:在根目录下的全局index.php中加下面这行: define('HTML_PATH', './htm');//生成静态页面的文件位置 2:在项目的配置文件config.php中加下面这行: 'HTML_FILE_SUFFIX' => '.html',// 默认静态文件后缀 3:在需要生成静态页
阅读全文
posted @ 2015-09-02 09:25 codeAB
阅读(312)
评论(0)
推荐(0)
2015年9月1日
跨域http请求
摘要: 关键是这句:
阅读全文
posted @ 2015-09-01 09:54 codeAB
阅读(458)
评论(0)
推荐(0)
2015年4月13日
linux 命令行下更换软件源
摘要: 首先备份默认源:sudo cp /etc/apt/sources.list /etc/apt/sources.list.old清空默认源:sudo cat /dev/null > /etc/apt/sources.list添加源:sudo vim /etc/apt/sources.list推荐源:#...
阅读全文
posted @ 2015-04-13 10:50 codeAB
阅读(1884)
评论(0)
推荐(0)
2015年1月16日
python 进程间共享数据 (三)
摘要: Python的multiprocessing模块包装了底层的机制,提供了Queue、Pipes等多种方式来交换数据。我们以Queue为例,在父进程中创建两个子进程,一个往Queue里写数据,一个从Queue里读数据:from multiprocessing import Process, Queue...
阅读全文
posted @ 2015-01-16 16:35 codeAB
阅读(599)
评论(0)
推荐(0)
python 进程间共享数据 (二)
摘要: Python中进程间共享数据,除了基本的queue,pipe和value+array外,还提供了更高层次的封装。使用multiprocessing.Manager可以简单地使用这些高级接口。Manager()返回的manager对象控制了一个server进程,此进程包含的python对象可以被其他的...
阅读全文
posted @ 2015-01-16 16:23 codeAB
阅读(1132)
评论(0)
推荐(0)
2015年1月14日
python 进程间共享数据 (一)
摘要: def worker(num, mystr, arr): num.value *= 2 mystr.value = "ok" for i in range(len(arr)): arr[i] = arr[i] * (-1) + 1.5def dump_vars(num...
阅读全文
posted @ 2015-01-14 14:24 codeAB
阅读(4897)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
公告
点击右上角即可分享