PyCharm:Intellisense 或自动完成不适用于 Python 3.5.2

Hel*_*024 5 python autocomplete pycharm python-3.x

我最近安装了 Python 3.5.2,然后是 PyCharm (IDE),但智能感知或自动完成在我的 Windows 10 中不起作用。

# Method 1: intellisense or auto-complete not working for below
city = input("Enter your City \n")
print(city)
print(city.)     *#<<<--- here not working when put a "." after "city"* variable
Run Code Online (Sandbox Code Playgroud)

快照 1

...但惊讶地发现它与以下代码一起工作正常:

myCity = "New York City"
print(myCity.upper())
Run Code Online (Sandbox Code Playgroud)

快照 2

Hel*_*024 6

现在终于可以工作了:

1)我必须Python 3.4.1为我的PyCharm 2016.3.2

2) 转到File菜单 >> Settings...>> Project: Python Programs>> Project Interpreter>> 现在按照以下屏幕截图进行操作:

截屏

...但不确定为什么它不适用于 Python 3.5?---> //@Pavel Karateev:谢谢更新。这很有帮助。