Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1243208
  • 博文数量: 389
  • 博客积分: 2874
  • 博客等级: 少校
  • 技术积分: 3577
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-24 10:34
文章分类

全部博文(389)

文章存档

2020年(2)

2018年(39)

2017年(27)

2016年(3)

2015年(55)

2014年(92)

2013年(54)

2012年(53)

2011年(64)

发布时间:2018-11-30 09:38:29

from flask import requestfrom flask import Flask, jsonifyimport loggingimport logging.configimport timelogger = logging.getLogger()logger.setLevel(logging.INFO)rq = time.strftime('%Y%m%d%H%M', time.localtime(time.time()))logfile = "logging.log"#logging.basicConfig(level=logging.DEBUG,#&nbs.........【阅读全文】

阅读(1373) | 评论(0) | 转发(0)

发布时间:2018-07-04 11:05:59

Python提供了importlib包作为标准库的一部分。目的就是提供Python中import语句的实现(以及__import__函数)。另外,importlib允许程序员创建他们自定义的对象,可用于引入过程(也称为importer)。另外有一个叫做imp的模块,它提供给Python import语句机制的接口。这个模块在Python 3.4中被否决,目的就是为了只使用.........【阅读全文】

阅读(1168) | 评论(0) | 转发(0)

发布时间:2017-12-07 10:19:44

Linear: Runs a list of tasks/flows, one after the other in a serial manner.Unordered: Runs a set of tasks/flows in any order, usually run in parallel manner and have no dependencies between tasks.Graph: Runs a graph (set of nodes and edges between those nodes) c.........【阅读全文】

阅读(1201) | 评论(0) | 转发(0)

发布时间:2017-10-27 10:51:10

源码是这样的:点击(此处)折叠或打开with self.virtapi.wait_for_instance_event( #错误位置                    instance, events, deadline=timeout,&n.........【阅读全文】

阅读(1418) | 评论(0) | 转发(0)

发布时间:2016-12-20 16:49:15

testscenarios 是 python单元测试模块的扩展,支持使用不同的场景运行测试。应用场景:1、对某个对象的不同版本运行一组测试2、对一组不同的对象运行同一个测试3、对不同的驱动执行相同的测试集,有点类似23基本上涵盖了1 和 2,所以以三为例。要实现场景3,一般的方法时mixin class:该类既包含单元测试的类,又.........【阅读全文】

阅读(1599) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册