摘要:
定义 import requests import logging # These two lines enable debugging at httplib level (requests->urllib3->http.client) # You will see the REQUEST, inc 阅读全文
摘要:
提醒用户使用了废弃的函数 def deprecated(func): """This decorator is used to mark functions as deprecated. It will result in a warning being emitted when the funct 阅读全文
摘要:
import datetime import json import requests from exception import AsstException #自定义 from log import logger #自定义 class Messenger(object): def __init__ 阅读全文
摘要:
随便用用1 import logging # logging.basicConfig(level=logging.ERROR, format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s:%(message)s') logging. 阅读全文
摘要:
定义 # -*- coding: utf-8 -*- import os import configparser class Config(object): def __init__(self, config_file='config.ini'): self._path = os.path.join 阅读全文