发布时间:2019-08-25 09:32:48编辑:auto阅读(1672)
在 /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数
51359
50824
41420
38220
32713
29608
28429
23332
23276
21605
1692°
2418°
2023°
1960°
2297°
1987°
2696°
4508°
4334°
3089°