概述
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
syn region Comment start=/"""/ end=/"""/
到你的?/ .vim / after / Syntax / python.vim.如果文件不存在,您可以创建此文件.
总结
以上是编程之家为你收集整理的突出显示python docstrings作为注释(vim语法高亮)全部内容,希望文章能够帮你解决突出显示python docstrings作为注释(vim语法高亮)所遇到的程序开发问题。
如果您也喜欢它,动动您的小指点个赞吧