class URLopener: """Class to open URLs. This is a class rather than just a subroutine because we may need more than one set of global protocol-specific options. Note -- this is a base class for those who don't want the automatic handling of errors type 302 (relocated) and 401 (authorization needed)."""def addheader(self,*args): """Add a header to be used by the http interface only e.g. u.addheader('Accept','sound/basic')"""# sample comment@H_301_5@解决方法 您可以添加以下行:
syn region Comment start=/"""/ end=/"""/
到你的〜/ .vim / after / Syntax / python.vim.如果文件不存在,您可以创建此文件.
总结以上是内存溢出为你收集整理的突出显示python docstrings作为注释(vim语法高亮)全部内容,希望文章能够帮你解决突出显示python docstrings作为注释(vim语法高亮)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)