摘要: #! /usr/bin/env python # coding=GBK import logging, os class Logger: def __init__(self, path, clevel=logging.DEBUG, Flevel=logging.DEBUG): self.logger = logging.getLogger(path) ... 阅读全文
posted @ 2018-06-04 14:50 zipon 阅读(262) 评论(0) 推荐(0) 编辑
摘要: # coding=utf8 import requests from common.logger import Logger import logging class httpUtils: logger = Logger("../logs/http.log",logging.INFO,logging.INFO) def get(self,url,params={},header... 阅读全文
posted @ 2018-06-04 14:49 zipon 阅读(1623) 评论(0) 推荐(1) 编辑