发布时间:2019-08-25 09:32:48编辑:auto阅读(1470)
在 /etc/vimrc 中添加这样两行
filetype plugin on autocmd FileType python set omnifunc=pythoncomplete#Complete
如何使用自动补全
例如我们输入
import sys print sys.
此时, 按下 Ctrl+x, Ctrl+o, 就能看到提示列表框,以及对应的 docstring.
Ctrl+n, Ctrl+p 来上下选择
ESC 来取消提示框。
a. 属性没有 docstring, 只有函数有。
:( 这个似乎不好搞,因为属性似乎没有 docstring 这个概念。
b. 在没有下拉框的情况下,没有 docstring.
上一篇: 关于python中的self,ins ,
下一篇: Python 连接Sql Server数
48907
47994
38765
35900
30323
27093
26103
20940
20758
19118
615°
689°
668°
675°
648°
615°
700°
763°
894°
1067°