摘要:
#!/usr/bin/python# -*-coding:utf-8-*- """@file : demo.py@time: 2017/11/15 15:58"""from multiprocessing import Processimport requestsimport redisimport 阅读全文
摘要:
========================================================================================================================1. 基类 scrapy.Spider name: spider的名称 allowed_domains: 允许的域名 start_url... 阅读全文
摘要:
#!/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' # 指定数... 阅读全文
摘要:
深度学习是 多层神经网络上运用各种机器学习算法 解决图像,文本等各种问题的算法集合 深度学习算法: convolutional Neural Networks(CNN)卷积神经网络 卷积网络:由卷积层、池化层、全连接层组成。 其中卷积层与池化层配合,组成多个卷积组,逐层提取特征,最终通过若干个全连接 阅读全文
摘要:
item中的数组更新 db.test2.insert( { "content" : "this is a blog post.", "comments" : [ { "author" : "Mike", "comment" : "I think that blah blah blah...", }, 阅读全文
摘要:
1./. 阅读全文
摘要:
r = redis.Redis(host='58.221.49.25',password='helloworld')n = r.lrange('dangd2:item',start=0,end=1) 阅读全文
摘要:
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... 阅读全文
摘要:
import osimport timeimport win32apiimport subprocess path = r"C:\data\liyugeng\SpiderPro\amazon" def runSpider(): os.getcwd() os.chdir(path=path) comm 阅读全文