摘要: #!/usr/bin/python# -*-coding:utf-8-*- """@file : demo.py@time: 2017/11/15 15:58"""from multiprocessing import Processimport requestsimport redisimport 阅读全文
posted @ 2017-11-16 17:50 人微言轻1 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: ========================================================================================================================1. 基类 scrapy.Spider name: spider的名称 allowed_domains: 允许的域名 start_url... 阅读全文
posted @ 2017-11-15 00:32 人微言轻1 阅读(450) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python# -*-coding:utf-8-*- """@author: yugengde@contact: yugengde@163.com@file : delMongoDataBase.py@time: 2017/11/14 14:23"""from pymongo import MongoClientMONGODB_DB= 'tmall' # 指定数... 阅读全文
posted @ 2017-11-14 14:30 人微言轻1 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 深度学习是 多层神经网络上运用各种机器学习算法 解决图像,文本等各种问题的算法集合 深度学习算法: convolutional Neural Networks(CNN)卷积神经网络 卷积网络:由卷积层、池化层、全连接层组成。 其中卷积层与池化层配合,组成多个卷积组,逐层提取特征,最终通过若干个全连接 阅读全文
posted @ 2017-11-12 22:44 人微言轻1 阅读(160) 评论(0) 推荐(0) 编辑
摘要: item中的数组更新 db.test2.insert( { "content" : "this is a blog post.", "comments" : [ { "author" : "Mike", "comment" : "I think that blah blah blah...", }, 阅读全文
posted @ 2017-11-12 21:07 人微言轻1 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 1./. 阅读全文
posted @ 2017-11-11 21:19 人微言轻1 阅读(2792) 评论(0) 推荐(0) 编辑
摘要: r = redis.Redis(host='58.221.49.25',password='helloworld')n = r.lrange('dangd2:item',start=0,end=1) 阅读全文
posted @ 2017-11-10 10:39 人微言轻1 阅读(160) 评论(0) 推荐(0) 编辑
摘要: import loggingimport timelogging.basicConfig(filename='demo_error.log', filemode="a+", level=logging.DEBUG)try: a = 1/0 print(a)except: logging.info(time.strftime('%Y-%m-%d %H:%M:%S', time... 阅读全文
posted @ 2017-11-10 00:57 人微言轻1 阅读(153) 评论(0) 推荐(0) 编辑
摘要: import osimport timeimport win32apiimport subprocess path = r"C:\data\liyugeng\SpiderPro\amazon" def runSpider(): os.getcwd() os.chdir(path=path) comm 阅读全文
posted @ 2017-11-09 17:15 人微言轻1 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 设置setting.pyj即可 阅读全文
posted @ 2017-11-08 00:45 人微言轻1 阅读(148) 评论(0) 推荐(0) 编辑