上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 125 下一页
摘要: https://wizardforcel.gitbooks.io/network-basic/content/0.html 阅读全文
posted @ 2018-03-30 09:56 公众号python学习开发 阅读(267) 评论(0) 推荐(0)
摘要: 1. 如果你想查询在你的环境下有哪些pytest的active plugin可以使用: [plain] view plain copy py.test --traceconfig [plain] view plain copy [plain] view plain copy 会得到一个扩展的头文件名 阅读全文
posted @ 2018-03-29 16:42 公众号python学习开发 阅读(221) 评论(0) 推荐(0)
摘要: 1、Pytest介绍 pytest是python的一种单元测试框架,与python自带的unittest测试框架类似,但是比unittest框架使用起来更简洁,效率更高。根据pytest的官方网站介绍,它具有如下特点: 非常容易上手,入门简单,文档丰富,文档中有很多实例可以参考 能够支持简单的单元测 阅读全文
posted @ 2018-03-29 16:17 公众号python学习开发 阅读(368) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*- import json import time import requests # from logger.log import other class YDMHttp: apiurl = 'http://api.yundama.com/api.php' username = '' password = '' a... 阅读全文
posted @ 2018-03-29 15:53 公众号python学习开发 阅读(2243) 评论(0) 推荐(0)
摘要: Python分布式爬虫打造搜索引擎 基于Scrapy、Redis、elasticsearch和django打造一个完整的搜索引擎网站 https://github.com/mtianyan/ArticleSpider 未来是什么时代?是数据时代!数据分析服务、互联网金融,数据建模、自然语言处理、医疗 阅读全文
posted @ 2018-03-29 15:21 公众号python学习开发 阅读(2815) 评论(0) 推荐(0)
摘要: http://xlsxwriter.readthedocs.io/format.html 阅读全文
posted @ 2018-03-28 17:11 公众号python学习开发 阅读(228) 评论(0) 推荐(0)
摘要: 表情是获取alt属性的值 传入内容的div区域即可,node就是内容的最外层的节点 阅读全文
posted @ 2018-03-28 15:45 公众号python学习开发 阅读(329) 评论(0) 推荐(0)
摘要: 使用sqlchemy查询出一个集合的时候第一个对象可以使用,后面的就报如下错误。 sqlalchemy.orm.exc.DetachedInstanceError: Instance <LoginInfo at 0x6d79e70> is not bound to a Session; attrib 阅读全文
posted @ 2018-03-27 09:54 公众号python学习开发 阅读(2116) 评论(0) 推荐(0)
摘要: from socket import *#利用socket模块生成套接字s = socket(AF_INET,SOCK_DGRAM)#定义一个元组,包含ip地址,和端口号,ip地址必须为字符串,端口号为#数字 飞秋的默认端口为2425add = ("192.168.100.148",2425) #设 阅读全文
posted @ 2018-03-27 09:01 公众号python学习开发 阅读(338) 评论(0) 推荐(0)
摘要: 在看 Bottle 代码中看见 functools.wraps 这种用法。 def make_default_app_wrapper(name): """ Return a callable that relays calls to the current default app. """ a = 阅读全文
posted @ 2018-03-26 10:22 公众号python学习开发 阅读(522) 评论(0) 推荐(0)
上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 125 下一页