parent
3351f019ed
commit
2de843361f
|
@ -484,6 +484,9 @@
|
|||
例子:输出函数执行时间的装饰器。
|
||||
|
||||
```Python
|
||||
from functools import wraps
|
||||
from time import time
|
||||
|
||||
def record_time(func):
|
||||
"""自定义装饰函数的装饰器"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue