Update 16-20.Python语言进阶.md

没有引用包下面代码会报错
pull/510/head
Zpadger 2020-03-19 16:22:03 +08:00 committed by GitHub
parent 3351f019ed
commit 2de843361f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -484,6 +484,9 @@
例子:输出函数执行时间的装饰器。
```Python
from functools import wraps
from time import time
def record_time(func):
"""自定义装饰函数的装饰器"""