- 博客(5)
- 资源 (1)
- 收藏
- 关注
转载 Python logging模块详解
一、简单将日志打印到屏幕:[python] view plaincopyimport logging logging.debug('debug message') logging.info('info message') logging.warning('warning message') logging.error('err
2016-11-26 19:41:58 375
转载 经常使用的一个python logging封装,支持同时向console和文件输出
原文:http://www.cnblogs.com/Jerryshome/archive/2012/02/01/2334444.html为了调试方便,特意将python的logging模块封装了一下,支持同时向console和file输出,支持日志文件回滚。(1)myloggingconfig.py# -*- coding: utf-8 -*-'''Cre
2016-11-26 19:38:48 6545
转载 python利用unittest进行测试用例执行的几种方式
原文:http://www.51testing.com/html/10/448910-3648852.html利用python进行测试时,测试用例的加载方式有2种: 一种是通过unittest.main()来启动所需测试的测试模块; 一种是添加到testsuite集合中再加载所有的被测试对象,而testsuit里存放的就是所需测试的用例,下面分别列出3种方法的具体使用方式:1、
2016-11-15 13:43:38 21691
转载 apt-get用法
如何在ubuntu下面直接查找想要安装的软件。比如我想安装tomcat.但是我又不知道ubuntu里面有哪种版本,也不知道都需要装什么,但是我能 确认我装的是tomcat那么我就可以用搜索命令:例如:$apt-cache search tomcat那么我就会得到以下的结果:libtomcat5-java - Java Servlet engine -- core librariesto
2016-11-08 16:44:05 325
转载 编译错误和解决方案
centos-5.8-x64 build ipxe failedutil/zbin.c:7:18: error: lzma.h: No such file or directoryyum install xz-devel.x86_64
2016-11-01 11:29:47 1137
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人