sasic's recent timeline updates
关于 Python 装饰器问题
想在同一 class 下,用方法 A 装饰方法 B,功能比如说:在 B 执行完, print 属性 C 可行吗?
Mar 21, 2019
sasic

sasic

V2EX member #209610, joined on 2017-01-07 15:29:11 +08:00
sasic's recent replies
Mar 22, 2019
Replied to a topic by sasic Python 装饰器问题
@aijam 非常感谢,可以举个例吗?网址好像打不开
Mar 21, 2019
Replied to a topic by sasic Python 装饰器问题
class school():
def __init__(self, c):
self.c=c
def A
def B
是的,装饰器和路由位置反了
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1284 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 17:25 · PVG 01:25 · LAX 10:25 · JFK 13:25
♥ Do have faith in what you're doing.