V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
zywscq
V2EX  ›  Python

以小搏大:灵活运用这 9 个 Python 内置的装饰器,可显著优化你的代码

  •  2
     
  •   zywscq · 117 天前 · 1567 次点击
    这是一个创建于 117 天前的主题,其中的信息可能已经有所发展或是发生改变。

    很多情况下,Python 内置的装饰器就提供了足够的功能,直接拿来用就好。 本文基于个人经验,给大家手动挑选并介绍 9 个最好用的,抛砖引玉:) https://medium.com/techtofreedom/9-python-built-in-decorators-that-optimize-your-code-significantly-bc3f661e9017?sk=599331339ae7af50ac4811af61161628

    1 条回复    2024-01-04 16:40:09 +08:00
    lzjunika
        1
    lzjunika  
       115 天前
    不错
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3241 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:52 · PVG 19:52 · LAX 04:52 · JFK 07:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.