單項選擇題

在Python中,如何使用裝飾器?()

A.@decorator def func():pass
B.def func()decorator:pass
C.func =decorator(func)
D.A和C都對

微信掃碼免費搜題