retry 使用

retry是用来实现重试的

from retry import retry

@retry(tries=5, delay=2)
def do_something():
    xxx

do_something()

  

原文地址:https://www.cnblogs.com/royfans/p/10271507.html