发布时间:2019-08-25 09:32:48编辑:auto阅读(1461)
在 /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数
48866
47935
38710
35859
30285
27039
26072
20905
20700
19067
503°
597°
608°
611°
588°
573°
639°
714°
831°
929°