摘要:
d = new Date("2014-03-08") Sat Mar 08 2014 08:00:00 GMT+0800 (CST)d = new Date("2014/03/08") Sat Mar 08 2014 00:00:00 GMT+0800 (CST)不同分割符出来的时间还不一样,TMD是在逗我么 阅读全文
阅读排行榜
取某个unixtime x 的当天的开始的unixtime y
2014-07-14 17:59 by briller, 176 阅读, 收藏,
摘要:
import timeimport datetimep = time.localtime(x)dt = datetime(*p[:3])y = time.mktime(dt.timetuple())顺便附带上星号什么的解释http://blog.csdn.net/qinyilang/article/... 阅读全文
split,或者match \ 时 可能需要4个斜杠,在微软时就遇到了啊。。
2014-09-22 17:02 by briller, 168 阅读, 收藏,
摘要:
http://blog.csdn.net/scy411082514/article/details/7987852 阅读全文
pymongo
2014-02-27 10:42 by briller, 158 阅读, 收藏,
摘要:
collectoin.updata({},{"$set":{}},multi=True)默认multi为False,只更新match 的第一条数据 阅读全文
scrapy 相关问题
2014-06-18 14:39 by briller, 155 阅读, 收藏,
摘要:
爬取text 包含某个关键字时zhibo_unicode = unicode("直播","utf-8")sel.xpath('//a[contains(span/text(),"%s")]/@href' % zhibo_unicode) 只能用%s占位符这种类似的方式。 以下方式是不... 阅读全文
浙公网安备 33010602011771号