摘要: ConfigParser 是Python自带的模块, 用来读写配置文件, 用法及其简单。配置文件的格式是:[...]包含的叫sectionsection 下有option=value这样的键值配置文件config.txt[section1]name = hesterage = 28[section2... 阅读全文
posted @ 2015-08-06 17:57 “人生苦短” 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 1.简单的将日志打印到屏幕import logginglogging.debug('This is debug message')logging.info('This is info message')logging.warning('This is warning message')屏幕上打印:W... 阅读全文
posted @ 2015-08-06 17:21 “人生苦短” 阅读(272) 评论(0) 推荐(0) 编辑