摘要: 顾名思义,logging模块是用来管理日志的。 logging模块包含四个部分: Loggers expose the interface that application code directly uses. 记录器,暴露应用程序代码能直接使用的接口。 Handlers send the log 阅读全文
posted @ 2017-10-22 14:44 KeithTt 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 作为一门脚本语言,写脚本时执行系统命令可以说很常见了,python提供了相关的模块和方法。 os模块提供了访问操作系统服务的功能,由于涉及到操作系统,它包含的内容比较多,这里只说system和popen方法。 >>> import os >>> dir(os) ['DirEntry', 'F_OK' 阅读全文
posted @ 2017-10-22 13:34 KeithTt 阅读(39804) 评论(0) 推荐(1) 编辑