Schauen wir uns ein Beispiel an, das zeigt, wie die mehrzeiligen Strings im Detail verwendet werden können: def string_reverse(str1): ''' Returns the reversed String. Parameters: str1 (str):The string which i
# needs_sphinx='1.0'# Add any Sphinx extension module names here,asstrings. They can be # extensions coming with Sphinx (named'sphinx.ext.*') or your custom # ones. # 根据引导程序的选择的扩展 extensions=['sphinx.ext.autodoc','sphinx.ext.viewcode', ] # Add any paths that contain temp...
# needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. # 根据引导程序的选择的扩展 extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.viewcode', ] # Add any paths t...
Converts the values of a dictionary to strings. """Converts the values of a dictionary to strings. Args: d (dict): The dictionary whose values need to be converted. @@ -52,8 +50,7 @@ def dict_values_to_string(d: dict) -> dict: def document_to_string(document: Document) -> ...
Expand Up @@ -23,7 +23,8 @@ def FrenchCursive(*tex_strings, **kwargs): class TexFontTemplateManual(Scene): """An example scene that uses a manually defined TexTemplate() object to create LaTeX output in French Cursive font""" LaTeX output in French Cursive font """ def construct(...
>>> ?? It works for me with triple-single quoted strings...from a quick >>> look it appears that pydoc uses inspect which looks at the __doc__ >>> attribute; do your modules have __doc__ attributes? >>>[/color] >> Kent, that's odd. My module does have a valid d...
Let's look at the example which can show how the multi-line strings can be used in detail: def string_reverse(str1): ''' Returns the reversed String. Parameters: str1 (str):The string which is to be reversed. Returns: reverse(str1):The string which gets reversed. ''' reverse_str...