|
|
1
59
(PEP for decorators) (first of a series of tutorial articles on decorators) . 这是一个你想要的例子。
这是一个使用它的例子
为了说明它是如何工作的,我从python提示符调用了函数:
|
|
|
2
10
你检查过房间了吗 "profile" module ? 也就是说,您确定需要实现自己的自定义框架,而不是使用该语言的默认分析机制吗? 你也可以在谷歌上搜索“python hotshot”来获得类似的解决方案。 |