Decorator打印每个装饰函数完成所需的时间。
timed-functions的Python项目详细描述
定时函数
Decorator打印每个装饰函数完成所需的时间。在
如何使用
fromtimed_functionsimporttiming@timingdefsay_hello(name):print(f"Hello {name}")
输出:
^{pr2}$如何部署
python3 -m pip install --user --upgrade setuptools wheel
python3 -m pip install --user --upgrade twine
rm -rf build dist timed_functions.egg-info
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
- 项目
标签: