Quizne
Quizne
zalo desktopzalo mobile

ĐÂU LÀ CÁCH ĐÚNG ĐỂ VIẾT MỘT DECORATOR GHI LẠI THỜI GIAN THỰC THI CỦA MỘT HÀM?

NeNe run

Want to know the answer? Start playing now!

[Python Intensive Course] Quiz 9
0 Questions
4 Plays

[Python Intensive Course] Quiz 9

avatar
Yen Trinh
Level:
Easy
[Python Intensive Course] Quiz 9
Question Types: Multiple choice
Answers:

- def timer(func): def wrapper(*args): start = time() result = func(*args) end = time() print(f"Time: {end-start}") return result return wrapper

- lambda x: time()

- def fib(): a, b = 0, 1 while True: yield a a, b = b, a + b

- def closure(x): def inner(): print(x) return inner

zalo desktopzalo mobile