Adding a sample and explanation for doctests

This commit is contained in:
guibog
2012-04-21 19:42:37 +08:00
parent 877d87892d
commit 6ccfb2fff5
2 changed files with 29 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ Inline comments are used for individual lines and should be used sparingly.: ::
But sometimes, this is useful: ::
x = x + 1 # Compensate for border
Doc Strings
Docstrings
-----------
PEP 257 is the primary reference for docstrings. (http://www.python.org/dev/peps/pep-0257/)