DocFormatter.

Æ÷¸Ë DocStrings follow pep 257
Áö±Ý ´Ù¿î·Îµå

DocFormatter. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • myint
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/myint/

DocFormatter. ű×


DocFormatter. ¼³¸í

DocFormatter´Â DocStrings¸¦ ÃßÀûÇÏ¿© DocStrings¸¦ Çü½ÄÈ­ÇÏ´Â Python ¸ðµâÀÔ´Ï´Ù. $ DocFormatter example.pythis : def launch_rocket () : "" "" "DEF °è½Â (x) : '' '¹Ýȯ X °è½Â. ÀÌ°ÍÀº math.factory¸¦ »ç¿ëÇÕ´Ï´Ù. ''¼öÀÔ Math.Factoring (x) DEF PRINT_FACTORIOR (x) : ""Àμâ X °è½Â "" "Àμâ (acchoredial (x)) DEF main () :" ""ÁÖ¿ä ÇÔ¼ö ""print_factory (5) accectorial (10) : launch_rocket ()ÀÌÀ̸¦ Çü½ÄÈ­ÇÕ´Ï´Ù. def launch_rocket () : "" "·ÎÄÏÀ» ½ÃÀÛÇÕ´Ï´Ù." "DEF °è½Â (x) :" ""Return X accictorial. ÀÌ°ÍÀº math.factory¸¦ »ç¿ëÇÕ´Ï´Ù. "" "Math Math.Factioring (x) def print_factoring (x) :" ""Àμâ X °è½Â "" "Àμâ (acchoredial (x)) def main () :" ""ÁÖ¿ä ±â´É. ""print_factory (5) if accitorial (10) : launch_rocket () optionsbelow´Â µµ¿ò¸» Ãâ·ÂÀÔ´Ï´Ù. »ç¿ë¹ý : DocFormatter ÆÄÀÏ Çü½Ä DocStrings Çü½Ä PEP 257.Positional Àμö¸¦ µû¸£·Á¸é : FormatOptional Àμö·Î ÆÄÀÏ ÆÄÀÏ : -h, --helpÀÌ µµ¿ò¸» ¸Þ½ÃÁö¸¦ Ç¥½ÃÇÏ°í Á¾·áÇÕ´Ï´Ù. diff -no-backup Àμ⠴ë½Å ÆÄÀÏÀ» º¯°æÇÏÁö ¸¶½Ê½Ã¿À ¹é¾÷ ÆÄÀÏÀ» ¾²Áö ¸¶½Ê½Ã¿À. - ÇÁ·Î±×·¥ÀÇ ¹öÀü ¹øÈ£¿Í ExitProductÀÇ È¨ÆäÀÌÁö


DocFormatter. °ü·Ã ¼ÒÇÁÆ®¿þ¾î