上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页
摘要: date为需要处理的参数(该参数是Unix 时间戳),可以是字段名,也可以直接是Unix 时间戳字符串 后面的 '%Y%m%d' 主要是将返回值格式化 例如: mysql>SELECT FROM_UNIXTIME( 1249488000, '%Y%m%d' ) ->20071120 mysql>SE 阅读全文
posted @ 2016-05-20 12:19 北京流浪儿 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: 1 #!bin/bash 2 3 del_table() 4 { 5 #月初的第一天 6 month_first_day=`date +%Y%m01` 7 8 #要删除的日期 9 last_7day_ago=`date -d "-8day" +%Y%m%d` 10 11 #drop table... 阅读全文
posted @ 2016-05-09 21:40 北京流浪儿 阅读(186) 评论(0) 推荐(0) 编辑
摘要: set -n "1,1000p" 表示从第1行到1000行。按照上面的脚本表示 每10000行 一个文件。 另外还有个split命令可以快速切割 split [-bl] file [prefix] 参数说明:-b, --bytes=SIZE:对file进行切分,每个小文件大小为SIZE。可以指定单位 阅读全文
posted @ 2016-05-09 21:34 北京流浪儿 阅读(1610) 评论(0) 推荐(0) 编辑
摘要: jquery中使用 阅读全文
posted @ 2016-04-06 15:49 北京流浪儿 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 客户机的请求方式格式:是统一资源标识符、协议版本号,后边是MIME信息包括请求修饰符、客户机信息和可能的内容!服务器响应格式:一个状态行包括信息的协议版本号、一个成功或错误的代码,后边是MIME信息包括服务器信息、实体信息和可能的内容。 通常有一下三种: Location: xxxx:yyyy/zz 阅读全文
posted @ 2016-04-06 14:52 北京流浪儿 阅读(193) 评论(0) 推荐(0) 编辑
摘要: $array = array(2,3,5,6,9,8,1); //冒泡排序思想,前后元素比较 function sort_bulldle($array){ $num = count($array); for($i=0; $i=0; $j--) { if ($tmp =0;$j--) { if($tmp $array[$i]) {... 阅读全文
posted @ 2016-03-25 17:55 北京流浪儿 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1、首先需要一个可以外网访问的接口url。 我这里是申请的新浪免费云服务器,http://xxxxx.applinzi.com/wx.php,具体自己可以去新浪云中心申请地址为:http://www.sinacloud.com 2、去微信公众账号申请个人的公众账号,地址为:https://mp.we 阅读全文
posted @ 2016-03-16 18:27 北京流浪儿 阅读(585) 评论(0) 推荐(0) 编辑
摘要:   阅读全文
posted @ 2016-03-14 11:58 北京流浪儿 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 使用xpath多线程爬取百度贴吧内容 #encoing=utf-8 from lxml import etree from multiprocessing.dummy import Pool as ThreadPool import requests import json import sys r 阅读全文
posted @ 2016-03-06 13:04 北京流浪儿 阅读(479) 评论(0) 推荐(0) 编辑
摘要: xpath的多线程爬虫 #encoding=utf-8 ''' pool = Pool(4) cpu的核数为4核 results = pool.map(爬取函数,网址列表) ''' from multiprocessing.dummy import Pool as ThreadPool import 阅读全文
posted @ 2016-03-06 11:24 北京流浪儿 阅读(277) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页