any regular expressions are allowed in pattern docstrings the method 模式文檔字符串中允許使用任何正則表達(dá)式(舉例來說,
first, much of the work done by a concrete class is specified in the docstrings of methods 首先,具體類所完成的大部分工作都在方法的文檔字符串(docstring)中指定。
lets you embed comments within docstrings that show the desired behavior of various statements, especially function and method results 模塊讓您可以在文檔字符串(docstrings)內(nèi)嵌入注釋以顯示各種語句的期望行為,尤其是函數(shù)和方法的結(jié)果。
looks through all the docstrings in the module itself, its functions, and its classes, to find anything that resembles an interactive shell session; in this case, such a session is found in the 函數(shù)去遍歷模塊本身、它的函數(shù)以及它的類中的所有文檔字符串,以找出所有類似交互式shell會話的內(nèi)容;在這個(gè)例子中,會在