Pycharm缺少嵌套类属性的Intelisense

2024-09-28 03:23:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用kubernate客户端以这种方式获取节点列表。你知道吗

obj = KubeApiHelper("default")
nodeList = obj.get_nodes_list()
for node in nodeList.items:
    print node.**status.conditions**

行我粗体我缺乏智能助手从IDE。 我想遍历我的节点并获取一些关于状态的嵌套属性。你知道吗

这是Intelissense窗口上的视图。 enter image description here

有没有可能让pycharm知道嵌套类属性(又称intelisense)。如图所示,我在浏览节点状态对象时没有得到Intelissense的帮助。我曾经与visual studio和c一起工作过,对于ide来说,这样的操作不是问题。你知道吗


Tags: nodeobjdefault客户端列表get属性节点

热门问题