PHP
/**
* @property \yii\web\AssetManager $assetManager The asset manager application component. This property is
* read-only.
* @property \yii\rbac\ManagerInterface $authManager The auth manager application
*/
phpstorm 会有上面定义的变量提示
Yii::app()->
def __getattr__(self, item):
def call_back(*args, **kwargs):
func = getattr(self.one, item)
return func(*args, **kwargs)
return call_back
- 如何让 pycharm obj. 点的时候提示类方法列表
- 很多方法代码基本都一样, 所以写成了魔术方法, 但用类 点的时候不知道有哪些方法
- 怎样让 pycharm 出现方法列表的提示