if iteration != 0: assert isinstance(iteration, object) threading.Timer(delay, repeat, (iteration, fn) - 1, interval, True).start()修改这段代码
时间: 2023-05-26 20:04:14 浏览: 107
Newton-iteration-method.rar_Newton-iteration_newton_newton itera
将其中的括号打乱了,正确的代码应该是:
if iteration != 0:
assert isinstance(iteration, object)
threading.Timer(delay, repeat, args=(iteration - 1, fn, interval, True)).start()
阅读全文