04 2019 档案

摘要:php 阅读全文
posted @ 2019-04-30 15:51 leo0362 阅读(337) 评论(0) 推荐(0) 编辑
摘要:class WeatherPipeline(object): def process_item(self, item, spider): print(item) return item #插入到redis import redis import json class RedisPipeline(object): def __init__(self... 阅读全文
posted @ 2019-04-30 15:50 leo0362 阅读(119) 评论(0) 推荐(0) 编辑
摘要:"; } //私有化克隆方法 private function __clone(){ } //声明一个getinstance()静态方法,用于检测是否有实例对象 static public function getinstance(){ //如果实例不存在生成实例 if(!self::$_instance){ self::$_instance... 阅读全文
posted @ 2019-04-25 16:40 leo0362 阅读(121) 评论(0) 推荐(0) 编辑
摘要:1 #!/usr/bin/env python 2 #-*- coding:utf-8 -*- 3 # author:leo 4 # datetime:2019/4/24 16:26 5 # software: PyCharm 6 import redis 7 #链接服务器 8 config={"host":"127.0.0.1","port":6379,'password':'... 阅读全文
posted @ 2019-04-24 17:15 leo0362 阅读(223) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python #-*- coding:utf-8 -*- # author:leo # datetime:2019/4/24 15:22 # software: PyCharm #pymysql 数据库操作 import pymysql #配置信息 config={"h 阅读全文
posted @ 2019-04-24 16:17 leo0362 阅读(170) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示