发布时间:2019-08-25 09:32:48编辑:auto阅读(1756)
在 /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数
51945
51738
42035
38879
33367
30333
28976
23992
23906
22265
436°
2613°
3306°
2747°
2727°
3494°
2693°
3521°
5812°
5599°