Create web apps without the complexity of frontend development. Used at Google for rapid AI app development.
ä»åã¯Pythonã§ç°¡åã«ãªãã©ã¤å¦çã追å ã§ãããtenacityãã使ã£ã¦ã¿ã¾ãã ãã³ã¬ã¼ã¿å½¢å¼ã§ç°¡åã«ãªãã©ã¤å¦çã追å ã§ããã®ã§ä¾¿å©ã§ãã tenacityã«ã¤ã㦠ããã°ã©ã ãæ¸ãã¦ãã¦ãHTTPã®éä¿¡ãªã©ã§ãªãã©ã¤å¦çãå®è£ ããæ©ä¼ã¯å¤ãã¨æãã¾ãã ä»åã¯ãããªãªãã©ã¤å¦çãç°¡æ½ã«æ¸ããtenacityã®ä½¿ãæ¹ã説æãã¾ãã ã¤ã³ã¹ãã¼ã« ã¤ã³ã¹ãã¼ã«ã¯pipã§å¯è½ã§ãã pip install tenacity 使ãæ¹ ã·ã³ãã«ãªä¾ import random from tenacity import retry @retry def random_error(): num = random.randint(0, 10) if num > 4: print(f"Error: num={num}") raise Exception("Error!") else: retur
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}