数据库 连接 查询 非代码原因的 重试 代码位置
数据 读写 函数 方法中 传参
业务逻辑中 重试次数 休息时间 灵活
sql_in_this = '{}{}'.format(sql_in, s) for rp in range(3): # 移出 r = mysql_write(mysql_key, sql_in_this) if r == False: time.sleep(1) else: break
数据 读写 函数 方法中 传参
业务逻辑中 重试次数 休息时间 灵活
sql_in_this = '{}{}'.format(sql_in, s) for rp in range(3): # 移出 r = mysql_write(mysql_key, sql_in_this) if r == False: time.sleep(1) else: break