发布时间:2019-08-25 09:32:48编辑:auto阅读(1528)
在 /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数
49671
48894
39582
36627
31034
27860
26831
21637
21541
19895
597°
1066°
1004°
964°
1979°
1102°
1775°
2012°
1576°
1536°