摘要: 参考链接:https://zhuanlan.zhihu.com/p/88122986 import backoff import time @backoff.on_predicate(backoff.fibo) def test2(): print("time is {}, retry...".fo 阅读全文
posted @ 2020-04-22 16:46 阿磊小哥哥呀 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: import logging from logging import handlers class Logger(object): level_relations = { 'debug': logging.DEBUG, 'info': logging.INFO, 'warning': logging 阅读全文
posted @ 2020-04-22 16:40 阿磊小哥哥呀 阅读(1515) 评论(0) 推荐(0) 编辑