Intellisense不提供适用于Python3的可用方法或文档

时间:2018-11-12 17:57:20

标签: python visual-studio-code intellisense

我正在使用Mac并尝试在VS Code中设置Intellisense,并已按照说明安装了Python扩展。但是,如果我写了一个简单的类和方法,并附有文档,然后稍后在键入“ a”时尝试调用该方法(即a.say_hello())。我没有获得可用的选项(即say_hello),也没有获得与此功能关联的相关文档(此文档打印出你好)。如何启用此功能?

class SimpleTest:
    def say_hello(self):
        '''
        this prints out hello
        '''
        print('hello')

a = SimpleTest()
a.say_hello()

0 个答案:

没有答案