Home
Sign Up
Sign In
推荐学习书目
›
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
V2EX
›
Python
python 新人求教关于装饰器的问题。
2
jianghu52
·
Jun 10, 2014
· 3976 views
This topic created in 4532 days ago, the information mentioned may be changed or developed.
我想知道在有参数的装饰器装饰有参数的函数的时候,编译器是怎么一个执行顺序
编译器
参数
求教
5 replies
•
2014-06-10 14:54:23 +08:00
tonghuashuai
Jun 10, 2014
2
1
https://gist.github.com/tonghuashuai/60e9a0b29f1a4e8bd939
ultimate010
Jun 10, 2014
2
学习了。
jianghu52
OP
Jun 10, 2014
3
谢谢。说好的很明白
poke707
Jun 10, 2014
4
我理解的"@"是一个语法糖,定义funciton时用@
foo
修饰,相当于定义完后再写function=foo(function)
至于@
foo
带参数,相当于function=foo(*arg)(function)
yueyoum
Jun 10, 2014 via Android
5
@
poke707
需要理解吗? 文档里写的一清二楚啊
就是这个
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
900 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms ·
UTC 20:30
·
PVG 04:30
·
LAX 12:30
·
JFK 15:30
♥ Do have faith in what you're doing.
❯