【发布时间】:2019-07-26 19:13:47
【问题描述】:
我已经安装了 Python 和 IntelliSense 扩展的 Python 自动完成。
我安装了包 matplotlib 并为此完成了工作
import matplotlib.pyplot as plt
fig = plt. #figure() shows in completion menu
但是当我尝试这个时
fig = plt.figure()
fig. # no completion menu. Specifically looking for suptitle()
[编辑] 似乎这实际上与 Python 是动态的有关。例如,提示类型使其完成
fig = plt.figure()
assert isinstance(fig, figure.Figure)
fig. # now completes perfectly
【问题讨论】:
标签: python visual-studio-code intellisense