为什么这一法典不发挥作用?
from threading import Timer
def delayed(seconds):
def decorator(f):
def wrapper(*args, **kargs):
Timer(seconds, f, args, kargs)
return wrapper
return decorator
@delayed(1)
def foo():
this function does not return
print( foo )
foo()
print( dudee )
i except this result: dudee foo
i have only dudee