Python decorator

Time:2019-9-11
Def log (func): def wrapper (): print ("start execution") func () print ("finish execution") return wrapper EF log_in (func): def wrapper (): print ("start entering...") func () print ("end...") [email protected]@log_f indehello (): print ('hello world') If _name_=='_main_': Hello ()