Definitionپێناسە
A written as the first line of a Python , or , usually in triple quotes, that explains what it does. Python keeps it so that help() can show it, while a starting with # is thrown away.
کە وەک یەکەم دێڕی ، یان Python دەنووسرێت، زۆرجار لەناو سێ . ڕوونی دەکاتەوە ئەو بەشە چی دەکات. Python هەڵیدەگرێت بۆ ئەوەی help() پیشانی بدات، بەڵام کە بە # دەست پێ دەکات فڕێ دەدرێت.
Exampleنموونە
help(cube_volume) prints the docstring, so other programmers know what the function does without reading its code.
help(cube_volume) زنجیرەنووسەی بەڵگەنامەکە چاپ دەکات، بۆیە بەبێ خوێندنەوەی کۆدەکەی دەزانن ئەو چی دەکات.
def cube_volume(side):
"""Return the volume of a cube with this side length."""
return side ** 3
help(cube_volume)Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر
دۆکسترینگ، زنجیرەنووسەی بەڵگەنامەکە، زنجیرەنووسەیەکی بەڵگەنامە، زنجیرەنووسەکانی بەڵگەنامە، زنجیرەنووسەی بەڵگەنامەی، زنجیرەنووسەکانی بەڵگەنامەی، زنجیرەنووسەیەکی بەڵگەنامەی
Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
Built from the registry's string (زنجیرەنووسە) and documentation (بەڵگەنامە), after Python's own name 'documentation string'. Proposed.
Related termsزاراوە پەیوەندیدارەکان
Videosڤیدیۆکان
A docstring as the first line of a function: the editor shows it on hover, __doc__ prints it, and modules like math have docstrings too.
وەک یەکەم دێڕی : کاتێک دەبەیتە سەری پیشانی دەدات، __doc__ چاپی دەکات، هەروەها وەک math هەیە.